diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2011-12-22 02:31:49 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2011-12-22 02:33:18 +0100 |
commit | 0d9d6535a9ad2a242ea546962d0d8514768dda39 (patch) | |
tree | 5a6dce6108a9e4b91b535d9ef276bafb3e0f4789 | |
parent | 3c86591749aae36f997944d9c972d1c71b21bc7b (diff) |
dmapper: clog -> SAL_WARN in GraphicImport
-rw-r--r-- | writerfilter/source/dmapper/GraphicImport.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index 2bb6693eed56..52c22dfa92fb 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -49,6 +49,7 @@ #include <cppuhelper/implbase1.hxx> #include <rtl/ustrbuf.hxx> +#include <rtl/oustringostreaminserter.hxx> #include <dmapper/DomainMapper.hxx> #include <doctok/resourceids.hxx> @@ -1483,8 +1484,7 @@ uno::Reference< text::XTextContent > GraphicImport::createGraphicObject( const b } catch (const uno::Exception& e) { - clog << __FILE__ << ":" << __LINE__ << " failed. Message :"; - clog << rtl::OUStringToOString (e.Message, RTL_TEXTENCODING_UTF8).getStr() << endl; + SAL_WARN("writerfilter", "failed. Message :" << e.Message); } } @@ -1503,16 +1503,16 @@ uno::Reference< text::XTextContent > GraphicImport::createGraphicObject( const b xNamed->setName( m_pImpl->sName ); } } - catch( const uno::Exception& ) + catch( const uno::Exception& e ) { + SAL_WARN("writerfilter", "failed. Message :" << e.Message); } } } } catch( const uno::Exception& e ) { - clog << __FILE__ << ":" << __LINE__ << " failed. Message :" ; - clog << rtl::OUStringToOString( e.Message, RTL_TEXTENCODING_UTF8 ).getStr( ) << endl; + SAL_WARN("writerfilter", "failed. Message :" << e.Message); } return xGraphicObject; } |