diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-03-08 00:49:32 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-03-12 13:35:57 +0100 |
commit | 3f765e5bb2955683fc2db10f630365a4c35416d3 (patch) | |
tree | 005cbfefc4547529d7a1e416b657d44c6e1e8308 /basctl/source/basicide/moduldl2.cxx | |
parent | 56e4153e2cbee8d66659e0c59690ef8911ad090a (diff) |
replace usage of OUString::replace*AsciiL() with string literal overloads
Diffstat (limited to 'basctl/source/basicide/moduldl2.cxx')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index ebb113765fc7..96545f649d51 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -962,9 +962,7 @@ void LibPage::InsertLib() ( xDlgLibContainer.is() && xDlgLibContainer->hasByName( aLibName ) && xDlgLibContainer->isLibraryReadOnly( aLibName ) && !xDlgLibContainer->isLibraryLink( aLibName ) ) ) { ::rtl::OUString aErrStr( ResId::toString( IDEResId( RID_STR_REPLACELIB ) ) ); - aErrStr = aErrStr.replaceAllAsciiL( - RTL_CONSTASCII_STRINGPARAM("XX"), - aLibName); + aErrStr = aErrStr.replaceAll("XX", aLibName); aErrStr += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n")); aErrStr += ResId::toString( IDEResId( RID_STR_LIBISREADONLY ) ); ErrorBox( this, WB_OK | WB_DEF_OK, aErrStr ).Execute(); @@ -981,9 +979,7 @@ void LibPage::InsertLib() aErrStr = ResId::toString( IDEResId( RID_STR_REFNOTPOSSIBLE ) ); else aErrStr = ResId::toString( IDEResId( RID_STR_IMPORTNOTPOSSIBLE ) ); - aErrStr = aErrStr.replaceAllAsciiL( - RTL_CONSTASCII_STRINGPARAM("XX"), - aLibName); + aErrStr = aErrStr.replaceAll("XX", aLibName); aErrStr += ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("\n")); aErrStr += ResId::toString( IDEResId( RID_STR_SBXNAMEALLREADYUSED ) ); ErrorBox( this, WB_OK | WB_DEF_OK, aErrStr ).Execute(); @@ -1004,9 +1000,7 @@ void LibPage::InsertLib() if ( !bOK ) { ::rtl::OUString aErrStr( ResId::toString( IDEResId( RID_STR_NOIMPORT ) ) ); - aErrStr = aErrStr.replaceAllAsciiL( - RTL_CONSTASCII_STRINGPARAM("XX"), - aLibName); + aErrStr = aErrStr.replaceAll("XX", aLibName); ErrorBox( this, WB_OK | WB_DEF_OK, aErrStr ).Execute(); continue; } |