summaryrefslogtreecommitdiff
path: root/sal
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 /sal
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 'sal')
-rw-r--r--sal/inc/rtl/ustrbuf.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index c5c6f5d54337..1397a182457d 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -986,7 +986,7 @@ public:
@since LibreOffice 4.0
*/
- OUStringBuffer & remove( sal_Int32 start = 0)
+ OUStringBuffer & truncate( sal_Int32 start = 0 )
{
rtl_uStringbuffer_remove( &pData, start, getLength() - start );
return *this;
@@ -1240,7 +1240,7 @@ public:
}
if(index < getLength())
{
- remove(index);
+ truncate(index);
}
return result - getLength();
}