summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-06 18:48:15 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-06 23:31:58 +0100
commit4cdda4670684f567287bc434af0c69fbddd54d26 (patch)
tree5d74545edb864f72b69f1d41e89fd092beaa8323 /xmloff
parentb8edade716c60d9d614f773da519ec1a7739a332 (diff)
OUStringBuffer::remove( int ) -> truncate( int )
Although this may seem consistent with remove( int, int ), it is in fact rather misleading API. The biggest offender is most probably buffer.remove( 'a' ) , which definitely does not do what it suggests to do. Change-Id: I287619cd4b953228b93fa68fb381d66c344c3865 Reviewed-on: https://gerrit.libreoffice.org/1256 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/style/xmlnumfi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index d53e004701dd..28a4ec62b4a7 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -906,7 +906,7 @@ static void lcl_EnquoteIfNecessary( rtl::OUStringBuffer& rContent, const SvXMLNu
rContent[nLen - 1] == (sal_Unicode) '"' &&
rContent[nLen - 2] == (sal_Unicode) '"' )
{
- rContent.remove(nLen - 2);
+ rContent.truncate(nLen - 2);
}
}
}