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 /chart2/source/controller/itemsetwrapper | |
parent | 826f1bca40a01f0a249d5b6cbb7c39c11638a060 (diff) |
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 'chart2/source/controller/itemsetwrapper')
-rw-r--r-- | chart2/source/controller/itemsetwrapper/ItemConverter.cxx | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx index eb66209e1a73..7669bd253674 100644 --- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx @@ -123,12 +123,7 @@ void ItemConverter::FillItemSet( SfxItemSet & rOutItemSet ) const catch( const beans::UnknownPropertyException &ex ) { delete pItem; - (void)ex; - OSL_FAIL( - OUStringToOString( - ex.Message + - " - unknown Property: " + aProperty.first, - RTL_TEXTENCODING_ASCII_US ).getStr()); + SAL_WARN( "chart2", ex.Message << " - unknown Property: " << aProperty.first); } catch( const uno::Exception &ex ) { @@ -193,17 +188,12 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet ) catch( const beans::UnknownPropertyException &ex ) { (void)ex; - OSL_FAIL( - OUStringToOString( - ex.Message + - " - unknown Property: " + aProperty.first, - RTL_TEXTENCODING_ASCII_US).getStr()); + SAL_WARN( "chart2", ex.Message << " - unknown Property: " << aProperty.first); } catch( const uno::Exception &ex ) { (void)ex; - OSL_FAIL( OUStringToOString( - ex.Message, RTL_TEXTENCODING_ASCII_US ).getStr()); + SAL_WARN( "chart2", ex.Message ); } } else |