diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-26 10:58:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-28 19:44:08 +0200 |
commit | ef513fd4b049b214a03fbe6e62a5ea43680a7a9b (patch) | |
tree | 82f2ce93bc8e5fde6dce8685b633c3d643c9f069 /basic | |
parent | rdm#2247 enable Upper Sorbian for languagepack/UI (diff) | |
download | core-ef513fd4b049b214a03fbe6e62a5ea43680a7a9b.tar.gz core-ef513fd4b049b214a03fbe6e62a5ea43680a7a9b.zip |
remove unnecessary use of OString::getStr
Change-Id: I0490efedf459190521f4339854b3394d57765fdb
Reviewed-on: https://gerrit.libreoffice.org/38058
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index a0617d498330..ab8dbadd350e 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -652,12 +652,7 @@ bool SfxScriptLibraryContainer::implStorePasswordLibrary( SfxLibrary* pLib, cons { if( !isLibraryElementValid( pLib->getByName( aElementName ) ) ) { - #if OSL_DEBUG_LEVEL > 0 - OString aMessage = "invalid library element '" + - OUStringToOString( aElementName, osl_getThreadTextEncoding() ) + - "'."; - OSL_FAIL( aMessage.getStr()); - #endif + SAL_WARN( "basic", "invalid library element '" << aElementName << "'."); continue; } @@ -734,12 +729,7 @@ bool SfxScriptLibraryContainer::implStorePasswordLibrary( SfxLibrary* pLib, cons if( !isLibraryElementValid( pLib->getByName( aElementName ) ) ) { - #if OSL_DEBUG_LEVEL > 0 - OString aMessage = "invalid library element '" + - OUStringToOString( aElementName, osl_getThreadTextEncoding() ) + - "'."; - OSL_FAIL( aMessage.getStr()); - #endif + SAL_WARN( "basic", "invalid library element '" << aElementName << "'."); continue; } |