diff options
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/misc/urihelper.cxx | 5 | ||||
-rw-r--r-- | svl/source/numbers/zformat.cxx | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/svl/source/misc/urihelper.cxx b/svl/source/misc/urihelper.cxx index f757b2524947..290d81cca769 100644 --- a/svl/source/misc/urihelper.cxx +++ b/svl/source/misc/urihelper.cxx @@ -783,12 +783,11 @@ OUString URIHelper::resolveIdnaHost(OUString const & url) { return url; } OUStringBuffer buf(uri->getScheme()); - buf.append("://").append(auth.getStr(), hostStart); + buf.append("://").appendCopy(auth, 0, hostStart); buf.append( reinterpret_cast<sal_Unicode const *>(ascii.getBuffer()), ascii.length()); - buf.append(auth.getStr() + hostEnd, auth.getLength() - hostEnd) - .append(uri->getPath()); + buf.appendCopy(auth, hostEnd).append(uri->getPath()); if (uri->hasQuery()) { buf.append('?').append(uri->getQuery()); } diff --git a/svl/source/numbers/zformat.cxx b/svl/source/numbers/zformat.cxx index f9e0b944b615..38b8f243f22d 100644 --- a/svl/source/numbers/zformat.cxx +++ b/svl/source/numbers/zformat.cxx @@ -1706,7 +1706,7 @@ short SvNumberformat::ImpNextSymbol(OUStringBuffer& rString, 0 <= nNatNumNum && nNatNumNum <= 19 ) { sBuffSymbol.stripStart('['); - sBuffSymbol.append( aBufStr.copy( --nPos, aNatNum.getLength()+1 )); + sBuffSymbol.appendCopy( aBufStr, --nPos, aNatNum.getLength()+1 ); nPos += aNatNum.getLength()+1; //! SymbolType is negative eSymbolType = static_cast<short>(BRACKET_SYMBOLTYPE_NATNUM0 - nNatNumNum); @@ -1716,7 +1716,7 @@ short SvNumberformat::ImpNextSymbol(OUStringBuffer& rString, 1 <= nDBNum && nDBNum <= 9 ) { sBuffSymbol.stripStart('['); - sBuffSymbol.append( aBufStr.copy( --nPos, aDBNum.getLength()+1 )); + sBuffSymbol.appendCopy( aBufStr, --nPos, aDBNum.getLength()+1 ); nPos += aDBNum.getLength()+1; //! SymbolType is negative eSymbolType = sal::static_int_cast< short >( BRACKET_SYMBOLTYPE_DBNUM1 - (nDBNum - 1) ); @@ -1944,7 +1944,7 @@ OUString SvNumberformat::StripNewCurrencyDelimiters( const OUString& rStr ) } else { - aTmp.append(rStr.copy( nStartPos, nPos - nStartPos )); + aTmp.appendCopy(rStr, nStartPos, nPos - nStartPos ); nStartPos = nPos + 2; sal_Int32 nDash; nEnd = nStartPos - 1; @@ -1975,13 +1975,13 @@ OUString SvNumberformat::StripNewCurrencyDelimiters( const OUString& rStr ) { nPos = nDash; } - aTmp.append(rStr.copy( nStartPos, nPos - nStartPos )); + aTmp.appendCopy(rStr, nStartPos, nPos - nStartPos ); nStartPos = nClose + 1; } } if ( nLen > nStartPos ) { - aTmp.append(rStr.copy( nStartPos, nLen - nStartPos )); + aTmp.appendCopy(rStr, nStartPos, nLen - nStartPos ); } return aTmp.makeStringAndClear(); } |