From ac8ee6e8f7f2de31e1dc496c1fab953e88e15bba Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 3 Apr 2019 08:50:28 +0100 Subject: Revert "add more append methods to *StringBuffer" This reverts commit 8cfa7f4dc00f3dd37e57917ef25c806b0e9e6e73. comment from sberg: we already have 70519a43e0d89a6b5d89859a6851f8c757c6b0c7 "Replace OUStringBuffer::appendCopy with append(std::u16string_view)" (which can be extended to OStringBuffer if needed) Change-Id: Ifcc550a8cf26ef38ad49fde8b067f53c999c9276 Reviewed-on: https://gerrit.libreoffice.org/70178 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svl/source/numbers/zformat.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svl') diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index c7d6954995d6..daa9791dba3c 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -1969,7 +1969,7 @@ OUString SvNumberformat::StripNewCurrencyDelimiters( const OUString& rStr ) sal_Int32 nEnd; if ( (nEnd = GetQuoteEnd( rStr, nPos )) >= 0 ) { - aTmp.append(rStr, nStartPos, ++nEnd - nStartPos ); + aTmp.append(rStr.copy( nStartPos, ++nEnd - nStartPos )); nStartPos = nEnd; } else -- cgit