[Libreoffice-commits] .: writerfilter/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Wed Dec 21 17:32:06 PST 2011


 writerfilter/source/dmapper/GraphicImport.cxx |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 0d9d6535a9ad2a242ea546962d0d8514768dda39
Author: Miklos Vajna <vmiklos at frugalware.org>
Date:   Thu Dec 22 02:31:49 2011 +0100

    dmapper: clog -> SAL_WARN in GraphicImport

diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index 2bb6693..52c22df 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;
 }


More information about the Libreoffice-commits mailing list