diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-02 22:35:57 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-03 18:04:24 +0100 |
commit | ce90f99a2d66c2b998ad3f9f028e2ea623a757f5 (patch) | |
tree | ec8f3adaeca225e22ae41eee80be114aadc25d17 /sc/source | |
parent | 249f09885bc06f580ec3aea5ccd7a09d8e91541d (diff) |
fixes for where fast string operator+ is not perfectly source compatible
Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/vba/vbaname.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/vba/vbaname.cxx b/sc/source/ui/vba/vbaname.cxx index 4c5f5f5f5044..484eba32e594 100644 --- a/sc/source/ui/vba/vbaname.cxx +++ b/sc/source/ui/vba/vbaname.cxx @@ -120,7 +120,7 @@ ScVbaName::getValue() throw (css::uno::RuntimeException) if ( sTmpValue.toChar() == '$' ) { ::rtl::OUString sTmp = sTmpValue.copy( 1 ); - sTmp = sTmp.replaceAt(0, (sSheetName + ::rtl::OUString::createFromAscii(".")).getLength(), sSheetName + ::rtl::OUString::createFromAscii("!")); + sTmp = sTmp.replaceAt(0, OUString(sSheetName + ::rtl::OUString::createFromAscii(".")).getLength(), sSheetName + ::rtl::OUString::createFromAscii("!")); sResult += sTmp; sResult += sNewSegmentation; } @@ -131,7 +131,7 @@ ScVbaName::getValue() throw (css::uno::RuntimeException) if ( sTmpValue.toChar() == '$' ) { ::rtl::OUString sTmp = sTmpValue.copy(1); - sTmp = sTmp.replaceAt(0, (sSheetName + ::rtl::OUString::createFromAscii(".")).getLength(), sSheetName + ::rtl::OUString::createFromAscii("!")); + sTmp = sTmp.replaceAt(0, OUString(sSheetName + ::rtl::OUString::createFromAscii(".")).getLength(), sSheetName + ::rtl::OUString::createFromAscii("!")); sResult += sTmp; } if (sResult.indexOf('=') != 0) @@ -160,7 +160,7 @@ ScVbaName::setValue( const ::rtl::OUString & rValue ) throw (css::uno::RuntimeEx while ( nTo != -1 ) { ::rtl::OUString sTmpValue = sValue.copy( nFrom, nTo - nFrom ); - sTmpValue = sTmpValue.replaceAt(0, (sSheetName + ::rtl::OUString::createFromAscii("!")).getLength(), sSheetName + ::rtl::OUString::createFromAscii(".")); + sTmpValue = sTmpValue.replaceAt(0, OUString(sSheetName + ::rtl::OUString::createFromAscii("!")).getLength(), sSheetName + ::rtl::OUString::createFromAscii(".")); if (sTmpValue.copy(0, sSheetName.getLength()).equals(sSheetName)) { sTmpValue = ::rtl::OUString::createFromAscii("$") + sTmpValue; @@ -171,7 +171,7 @@ ScVbaName::setValue( const ::rtl::OUString & rValue ) throw (css::uno::RuntimeEx nTo = sValue.indexOf( sSegmentation, nFrom ); } ::rtl::OUString sTmpValue = sValue.copy( nFrom ); - sTmpValue = sTmpValue.replaceAt(0, (sSheetName + ::rtl::OUString::createFromAscii("!")).getLength(), sSheetName + ::rtl::OUString::createFromAscii(".")); + sTmpValue = sTmpValue.replaceAt(0, OUString(sSheetName + ::rtl::OUString::createFromAscii("!")).getLength(), sSheetName + ::rtl::OUString::createFromAscii(".")); if (sTmpValue.copy(0, sSheetName.getLength()).equals(sSheetName)) { sTmpValue = ::rtl::OUString::createFromAscii("$") + sTmpValue; |