From 0d9d6535a9ad2a242ea546962d0d8514768dda39 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 22 Dec 2011 02:31:49 +0100 Subject: dmapper: clog -> SAL_WARN in GraphicImport --- writerfilter/source/dmapper/GraphicImport.cxx | 10 +++++----- 1 file 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 #include +#include #include #include @@ -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; } -- cgit