diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-06 18:48:15 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-06 23:31:58 +0100 |
commit | 4cdda4670684f567287bc434af0c69fbddd54d26 (patch) | |
tree | 5d74545edb864f72b69f1d41e89fd092beaa8323 /sal | |
parent | b8edade716c60d9d614f773da519ec1a7739a332 (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.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx index b8f2d0566193..76b68dd661c6 100644 --- a/sal/inc/rtl/ustrbuf.hxx +++ b/sal/inc/rtl/ustrbuf.hxx @@ -965,7 +965,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; @@ -1219,7 +1219,7 @@ public: } if(index < getLength()) { - remove(index); + truncate(index); } return result - getLength(); } |