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 --- bridges/source/cpp_uno/msvc_win32_intel/except.cxx | 4 ++-- bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'bridges') diff --git a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx index 9f7bc81d71d1..4f761ef3ed20 100644 --- a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx @@ -52,7 +52,7 @@ static inline OUString toUNOname( OUString const & rRTTIname ) throw () while (nPos > 0) { sal_Int32 n = aStr.lastIndexOf( '@', nPos ); - aRet.append( aStr, n +1, nPos -n -1 ); + aRet.append( aStr.copy( n +1, nPos -n -1 ) ); if (n >= 0) { aRet.append( '.' ); @@ -70,7 +70,7 @@ static inline OUString toRTTIname( OUString const & rUNOname ) throw () while (nPos > 0) { sal_Int32 n = rUNOname.lastIndexOf( '.', nPos ); - aRet.append( rUNOname, n +1, nPos -n -1 ); + aRet.append( rUNOname.copy( n +1, nPos -n -1 ) ); aRet.append( '@' ); nPos = n; } diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx index 0961f618aada..385f5f5cb9ed 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx @@ -275,7 +275,7 @@ static OUString toUNOname( while (nPos > 0) { sal_Int32 n = aStr.lastIndexOf( '@', nPos ); - aRet.append( aStr, n +1, nPos -n -1 ); + aRet.append( aStr.copy( n +1, nPos -n -1 ) ); if (n >= 0) { aRet.append( '.' ); @@ -295,7 +295,7 @@ static OUString toRTTIname( while (nPos > 0) { sal_Int32 n = rUNOname.lastIndexOf( '.', nPos ); - aRet.append( rUNOname, n +1, nPos -n -1 ); + aRet.append( rUNOname.copy( n +1, nPos -n -1 ) ); aRet.append( '@' ); nPos = n; } -- cgit