summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-06 18:48:15 +0100
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-12-06 20:40:54 +0000
commiteafb82821386e4c14f4a072e4b541dc60f4d7af2 (patch)
treec555c7f73935213c8813b106c1e49388365a9459 /xmloff
parentcf543d8a78170f4fa3c2ca340f21e61d913a90eb (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);
}
}
}