[Libreoffice-commits] core.git: binaryurp/source package/source vcl/unx

Stephan Bergmann sbergman at redhat.com
Wed Apr 16 13:44:23 PDT 2014


 binaryurp/source/incomingrequest.cxx      |    9 +---
 binaryurp/source/writer.cxx               |    4 -
 package/source/xstor/ocompinstream.cxx    |   62 ++++++++++++++--------------
 package/source/xstor/oseekinstream.cxx    |   12 ++---
 package/source/xstor/owriteablestream.cxx |   66 +++++++++++++++---------------
 vcl/unx/generic/printer/ppdparser.cxx     |   18 ++++----
 6 files changed, 85 insertions(+), 86 deletions(-)

New commits:
commit c3e84d4c74847271f88e1f83369d0b55b2fd6037
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Apr 16 22:42:40 2014 +0200

    sal/log.hxx functionality also includes the equivalent of OSL_LOG_PREFIX
    
    Change-Id: I1bb0115a378003b5cc5b1cfc59c474a1f100d894

diff --git a/binaryurp/source/incomingrequest.cxx b/binaryurp/source/incomingrequest.cxx
index 1ac6e10..ff30a8e 100644
--- a/binaryurp/source/incomingrequest.cxx
+++ b/binaryurp/source/incomingrequest.cxx
@@ -101,16 +101,16 @@ void IncomingRequest::execute() const {
             return;
         } catch (const css::uno::RuntimeException & e) {
             OSL_TRACE(
-                OSL_LOG_PREFIX "caught UNO runtime exception '%s'",
+                "caught UNO runtime exception '%s'",
                 (OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).
                  getStr()));
         } catch (const std::exception & e) {
-            OSL_TRACE(OSL_LOG_PREFIX "caught C++ exception '%s'", e.what());
+            OSL_TRACE("caught C++ exception '%s'", e.what());
         }
         bridge_->terminate(false);
     } else {
         if (isExc) {
-            OSL_TRACE(OSL_LOG_PREFIX "oneway method raised exception");
+            OSL_TRACE("oneway method raised exception");
         }
         bridge_->decrementCalls();
     }
@@ -148,8 +148,7 @@ bool IncomingRequest::execute_throw(
                     ifc = prov->getInstance(oid_);
                 } catch (const css::container::NoSuchElementException & e) {
                     OSL_TRACE(
-                        (OSL_LOG_PREFIX "initial element '%s':"
-                         " NoSuchElementException '%s'"),
+                        "initial element '%s': NoSuchElementException '%s'",
                         OUStringToOString(oid_, RTL_TEXTENCODING_UTF8).getStr(),
                         (OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).
                          getStr()));
diff --git a/binaryurp/source/writer.cxx b/binaryurp/source/writer.cxx
index edcb0f5..46198b9 100644
--- a/binaryurp/source/writer.cxx
+++ b/binaryurp/source/writer.cxx
@@ -171,10 +171,10 @@ void Writer::execute() {
         }
     } catch (const css::uno::Exception & e) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "caught UNO exception '%s'",
+            "caught UNO exception '%s'",
             OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8).getStr());
     } catch (const std::exception & e) {
-        OSL_TRACE(OSL_LOG_PREFIX "caught C++ exception '%s'", e.what());
+        OSL_TRACE("caught C++ exception '%s'", e.what());
     }
     bridge_->terminate(false);
     bridge_.clear();
diff --git a/package/source/xstor/ocompinstream.cxx b/package/source/xstor/ocompinstream.cxx
index 3693364..0165d0a 100644
--- a/package/source/xstor/ocompinstream.cxx
+++ b/package/source/xstor/ocompinstream.cxx
@@ -115,13 +115,13 @@ sal_Int32 SAL_CALL OInputCompStream::readBytes( uno::Sequence< sal_Int8 >& aData
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xStream.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No stream!");
+        SAL_INFO("package.xstor", "No stream!");
         throw uno::RuntimeException();
     }
 
@@ -137,13 +137,13 @@ sal_Int32 SAL_CALL OInputCompStream::readSomeBytes( uno::Sequence< sal_Int8 >& a
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xStream.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No stream!");
+        SAL_INFO("package.xstor", "No stream!");
         throw uno::RuntimeException();
     }
 
@@ -160,13 +160,13 @@ void SAL_CALL OInputCompStream::skipBytes( sal_Int32 nBytesToSkip )
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xStream.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No stream!");
+        SAL_INFO("package.xstor", "No stream!");
         throw uno::RuntimeException();
     }
 
@@ -182,13 +182,13 @@ sal_Int32 SAL_CALL OInputCompStream::available(  )
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xStream.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No stream!");
+        SAL_INFO("package.xstor", "No stream!");
         throw uno::RuntimeException();
     }
 
@@ -210,7 +210,7 @@ uno::Reference< io::XInputStream > SAL_CALL OInputCompStream::getInputStream()
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -226,7 +226,7 @@ uno::Reference< io::XOutputStream > SAL_CALL OInputCompStream::getOutputStream()
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -239,7 +239,7 @@ void OInputCompStream::InternalDispose()
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -267,7 +267,7 @@ void SAL_CALL OInputCompStream::dispose(  )
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -294,7 +294,7 @@ void SAL_CALL OInputCompStream::addEventListener( const uno::Reference< lang::XE
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -310,7 +310,7 @@ void SAL_CALL OInputCompStream::removeEventListener( const uno::Reference< lang:
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -326,7 +326,7 @@ sal_Bool SAL_CALL OInputCompStream::hasByID(  const OUString& sID )
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -353,7 +353,7 @@ OUString SAL_CALL OInputCompStream::getTargetByID(  const OUString& sID  )
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -377,7 +377,7 @@ OUString SAL_CALL OInputCompStream::getTypeByID(  const OUString& sID  )
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -401,7 +401,7 @@ uno::Sequence< beans::StringPair > SAL_CALL OInputCompStream::getRelationshipByI
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -430,7 +430,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OInputCompStream::g
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -464,7 +464,7 @@ uno::Sequence< uno::Sequence< beans::StringPair > > SAL_CALL OInputCompStream::g
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -494,7 +494,7 @@ void SAL_CALL OInputCompStream::insertRelationshipByID(  const OUString& /*sID*/
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -513,7 +513,7 @@ void SAL_CALL OInputCompStream::removeRelationshipByID(  const OUString& /*sID*/
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -532,7 +532,7 @@ void SAL_CALL OInputCompStream::insertRelationships(  const uno::Sequence< uno::
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -550,7 +550,7 @@ void SAL_CALL OInputCompStream::clearRelationships()
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -567,7 +567,7 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL OInputCompStream::getProperty
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -586,7 +586,7 @@ void SAL_CALL OInputCompStream::setPropertyValue( const OUString& aPropertyName,
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -611,7 +611,7 @@ uno::Any SAL_CALL OInputCompStream::getPropertyValue( const OUString& aProp )
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -647,7 +647,7 @@ void SAL_CALL OInputCompStream::addPropertyChangeListener(
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -665,7 +665,7 @@ void SAL_CALL OInputCompStream::removePropertyChangeListener(
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -683,7 +683,7 @@ void SAL_CALL OInputCompStream::addVetoableChangeListener(
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -701,7 +701,7 @@ void SAL_CALL OInputCompStream::removeVetoableChangeListener(
 
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
diff --git a/package/source/xstor/oseekinstream.cxx b/package/source/xstor/oseekinstream.cxx
index 813ff24..be18fba 100644
--- a/package/source/xstor/oseekinstream.cxx
+++ b/package/source/xstor/oseekinstream.cxx
@@ -114,13 +114,13 @@ void SAL_CALL OInputSeekStream::seek( sal_Int64 location )
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xSeekable.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No seekable!");
+        SAL_INFO("package.xstor", "No seekable!");
         throw uno::RuntimeException();
     }
 
@@ -134,13 +134,13 @@ sal_Int64 SAL_CALL OInputSeekStream::getPosition()
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xSeekable.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No seekable!");
+        SAL_INFO("package.xstor", "No seekable!");
         throw uno::RuntimeException();
     }
 
@@ -154,13 +154,13 @@ sal_Int64 SAL_CALL OInputSeekStream::getLength()
     ::osl::MutexGuard aGuard( m_rMutexRef->GetMutex() );
     if ( m_bDisposed )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
     if ( !m_xSeekable.is() )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "No seekable!");
+        SAL_INFO("package.xstor", "No seekable!");
         throw uno::RuntimeException();
     }
 
diff --git a/package/source/xstor/owriteablestream.cxx b/package/source/xstor/owriteablestream.cxx
index 8a7baf2..272307f 100644
--- a/package/source/xstor/owriteablestream.cxx
+++ b/package/source/xstor/owriteablestream.cxx
@@ -96,7 +96,7 @@ void SetEncryptionKeyProperty_Impl( const uno::Reference< beans::XPropertySet >&
     catch ( const uno::Exception& rException )
     {
         SAL_INFO("package.xstor", rException.Message);
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Can't set encryption");
+        SAL_INFO("package.xstor", "Can't set encryption");
         SAL_WARN( "package.xstor", "Can't write encryption related properties!" );
         throw io::IOException(); // TODO
     }
@@ -114,7 +114,7 @@ uno::Any GetEncryptionKeyProperty_Impl( const uno::Reference< beans::XPropertySe
     catch ( const uno::Exception& rException )
     {
         SAL_INFO("package.xstor", rException.Message);
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Can't get encryption property");
+        SAL_INFO("package.xstor", "Can't get encryption property");
 
         SAL_WARN( "package.xstor", "Can't get encryption related properties!" );
         throw io::IOException(); // TODO
@@ -198,7 +198,7 @@ sal_Bool KillFile( const OUString& aURL, const uno::Reference< uno::XComponentCo
     catch( const uno::Exception& rException )
     {
         SAL_INFO("package.xstor", rException.Message);
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Quiet exception");
+        SAL_INFO("package.xstor", "Quiet exception");
     }
 
     return bRet;
@@ -220,7 +220,7 @@ OUString GetNewTempFileURL( const uno::Reference< uno::XComponentContext > xCont
     catch ( const uno::Exception& rException )
     {
         SAL_INFO("package.xstor", rException.Message);
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Quiet exception");
+        SAL_INFO("package.xstor", "Quiet exception");
     }
 
     if ( aTempURL.isEmpty() )
@@ -471,7 +471,7 @@ void OWriteStream_Impl::DisposeWrappers()
         catch ( const uno::RuntimeException& rRuntimeException )
         {
             AddLog( rRuntimeException.Message );
-            AddLog( OSL_LOG_PREFIX "Quiet exception" );
+            AddLog( "Quiet exception" );
         }
 
         m_pAntiImpl = NULL;
@@ -520,7 +520,7 @@ OUString OWriteStream_Impl::GetFilledTempFileIfNo( const uno::Reference< io::XIn
         catch( const packages::WrongPasswordException& rWrongPasswordException )
         {
             AddLog( rWrongPasswordException.Message );
-            AddLog( OSL_LOG_PREFIX "Rethrow" );
+            AddLog( "Rethrow" );
 
             KillFile( aTempURL, comphelper::getProcessComponentContext() );
             throw;
@@ -528,7 +528,7 @@ OUString OWriteStream_Impl::GetFilledTempFileIfNo( const uno::Reference< io::XIn
         catch( const uno::Exception& rException )
         {
             AddLog( rException.Message );
-            AddLog( OSL_LOG_PREFIX "Rethrow" );
+            AddLog( "Rethrow" );
 
             KillFile( aTempURL, comphelper::getProcessComponentContext() );
         throw;
@@ -643,7 +643,7 @@ uno::Reference< io::XStream > OWriteStream_Impl::GetTempFileAsStream()
             catch( const uno::Exception& rException )
             {
                 AddLog( rException.Message );
-                AddLog( OSL_LOG_PREFIX "Quiet exception" );
+                AddLog( "Quiet exception" );
             }
         }
     }
@@ -681,7 +681,7 @@ uno::Reference< io::XInputStream > OWriteStream_Impl::GetTempFileAsInputStream()
             catch( const uno::Exception& rException )
             {
                 AddLog( rException.Message );
-                AddLog( OSL_LOG_PREFIX "Quiet exception" );
+                AddLog( "Quiet exception" );
             }
         }
     }
@@ -1029,7 +1029,7 @@ void OWriteStream_Impl::ReadRelInfoIfNecessary()
         catch( const uno::Exception& rException )
         {
             AddLog( rException.Message );
-            AddLog( OSL_LOG_PREFIX "Quiet exception" );
+            AddLog( "Quiet exception" );
 
             m_nRelInfoStatus = RELINFO_BROKEN;
             m_bOrigRelInfoBroken = sal_True;
@@ -1097,7 +1097,7 @@ uno::Sequence< beans::PropertyValue > OWriteStream_Impl::ReadPackageStreamProper
             catch( const uno::Exception& rException )
             {
                 AddLog( rException.Message );
-                AddLog( OSL_LOG_PREFIX "Quiet exception" );
+                AddLog( "Quiet exception" );
 
                 SAL_WARN( "package.xstor", "A property can't be retrieved!" );
             }
@@ -1215,13 +1215,13 @@ uno::Reference< io::XStream > OWriteStream_Impl::GetStream( sal_Int32 nStreamMod
         {
             SetEncryptionKeyProperty_Impl( xPropertySet, uno::Sequence< beans::NamedValue >() );
             AddLog( rWrongPasswordException.Message );
-            AddLog( OSL_LOG_PREFIX "Rethrow" );
+            AddLog( "Rethrow" );
             throw;
         }
         catch ( const uno::Exception& rException )
         {
             AddLog( rException.Message );
-            AddLog( OSL_LOG_PREFIX "Quiet exception" );
+            AddLog( "Quiet exception" );
 
             SAL_WARN( "package.xstor", "Can't write encryption related properties!" );
             SetEncryptionKeyProperty_Impl( xPropertySet, uno::Sequence< beans::NamedValue >() );
@@ -1255,7 +1255,7 @@ uno::Reference< io::XStream > OWriteStream_Impl::GetStream( sal_Int32 nStreamMod
         catch( const packages::NoEncryptionException& rNoEncryptionException )
         {
             AddLog( rNoEncryptionException.Message );
-            AddLog( OSL_LOG_PREFIX "Rethrow" );
+            AddLog( "Rethrow" );
 
             throw packages::WrongPasswordException();
         }
@@ -1483,7 +1483,7 @@ void OWriteStream_Impl::GetCopyOfLastCommit( uno::Reference< io::XStream >& xTar
         catch( const packages::NoEncryptionException& rNoEncryptionException )
         {
             AddLog( rNoEncryptionException.Message );
-            AddLog( OSL_LOG_PREFIX "No Element" );
+            AddLog( "No Element" );
 
             throw packages::WrongPasswordException();
         }
@@ -1556,7 +1556,7 @@ void OWriteStream_Impl::GetCopyOfLastCommit( uno::Reference< io::XStream >& xTar
             SAL_WARN( "package.xstor", "Can't open encrypted stream!" );
             SetEncryptionKeyProperty_Impl( xPropertySet, uno::Sequence< beans::NamedValue >() );
             AddLog( rException.Message );
-            AddLog( OSL_LOG_PREFIX "Rethrow" );
+            AddLog( "Rethrow" );
             throw;
         }
 
@@ -1724,7 +1724,7 @@ OWriteStream::~OWriteStream()
             catch( const uno::RuntimeException& rRuntimeException )
             {
                 m_pImpl->AddLog( rRuntimeException.Message );
-                m_pImpl->AddLog( OSL_LOG_PREFIX "Quiet exception" );
+                m_pImpl->AddLog( "Quiet exception" );
             }
         }
     }
@@ -1754,7 +1754,7 @@ void OWriteStream::CheckInitOnDemand()
 {
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -1817,7 +1817,7 @@ void OWriteStream::CopyToStreamInternally_Impl( const uno::Reference< io::XStrea
     catch ( const uno::Exception& rException )
     {
         m_pImpl->AddLog( rException.Message );
-        m_pImpl->AddLog( OSL_LOG_PREFIX "Quiet exception" );
+        m_pImpl->AddLog( "Quiet exception" );
 
         // TODO: set the stoream in invalid state or dispose
         SAL_WARN( "package.xstor", "The stream become invalid during copiing!" );
@@ -2052,7 +2052,7 @@ sal_Int32 SAL_CALL OWriteStream::readBytes( uno::Sequence< sal_Int8 >& aData, sa
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2074,7 +2074,7 @@ sal_Int32 SAL_CALL OWriteStream::readSomeBytes( uno::Sequence< sal_Int8 >& aData
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2096,7 +2096,7 @@ void SAL_CALL OWriteStream::skipBytes( sal_Int32 nBytesToSkip )
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2117,7 +2117,7 @@ sal_Int32 SAL_CALL OWriteStream::available(  )
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2137,7 +2137,7 @@ void SAL_CALL OWriteStream::closeInput(  )
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2161,7 +2161,7 @@ uno::Reference< io::XInputStream > SAL_CALL OWriteStream::getInputStream()
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2180,7 +2180,7 @@ uno::Reference< io::XOutputStream > SAL_CALL OWriteStream::getOutputStream()
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2203,7 +2203,7 @@ void SAL_CALL OWriteStream::writeBytes( const uno::Sequence< sal_Int8 >& aData )
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2272,7 +2272,7 @@ void SAL_CALL OWriteStream::flush()
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2320,7 +2320,7 @@ void SAL_CALL OWriteStream::closeOutput()
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2344,7 +2344,7 @@ void SAL_CALL OWriteStream::seek( sal_Int64 location )
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2364,7 +2364,7 @@ sal_Int64 SAL_CALL OWriteStream::getPosition()
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2384,7 +2384,7 @@ sal_Int64 SAL_CALL OWriteStream::getLength()
 
     if ( !m_pImpl )
     {
-        SAL_INFO("package.xstor", OSL_LOG_PREFIX "Disposed!");
+        SAL_INFO("package.xstor", "Disposed!");
         throw lang::DisposedException();
     }
 
@@ -2623,7 +2623,7 @@ sal_Bool SAL_CALL OWriteStream::hasByID(  const OUString& sID )
     catch( const container::NoSuchElementException& rNoSuchElementException )
     {
         m_pImpl->AddLog( rNoSuchElementException.Message );
-        m_pImpl->AddLog( OSL_LOG_PREFIX "No Element" );
+        m_pImpl->AddLog( "No Element" );
     }
 
     return sal_False;
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 5322c98..d51577d 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -719,12 +719,12 @@ PPDParser::PPDParser( const OUString& rFile ) :
         m_pDefaultImageableArea = m_pImageableAreas->getDefaultValue();
     if (m_pImageableAreas == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no ImageableArea in %s\n",
+            "Warning: no ImageableArea in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
     if (m_pDefaultImageableArea == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no DefaultImageableArea in %s\n",
+            "Warning: no DefaultImageableArea in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
 
@@ -733,12 +733,12 @@ PPDParser::PPDParser( const OUString& rFile ) :
         m_pDefaultPaperDimension = m_pPaperDimensions->getDefaultValue();
     if (m_pPaperDimensions == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no PaperDimensions in %s\n",
+            "Warning: no PaperDimensions in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
     if (m_pDefaultPaperDimension == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no DefaultPaperDimensions in %s\n",
+            "Warning: no DefaultPaperDimensions in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
 
@@ -747,12 +747,12 @@ PPDParser::PPDParser( const OUString& rFile ) :
         m_pDefaultResolution = m_pResolutions->getDefaultValue();
     if (m_pResolutions == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no Resolution in %s\n",
+            "Warning: no Resolution in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
     if (m_pDefaultResolution == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no DefaultResolution in %s\n",
+            "Warning: no DefaultResolution in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
 
@@ -761,12 +761,12 @@ PPDParser::PPDParser( const OUString& rFile ) :
         m_pDefaultInputSlot = m_pInputSlots->getDefaultValue();
     if (m_pInputSlots == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no InputSlot in %s\n",
+            "Warning: no InputSlot in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
     if (m_pDefaultInputSlot == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no DefaultInputSlot in %s\n",
+            "Warning: no DefaultInputSlot in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
 
@@ -777,7 +777,7 @@ PPDParser::PPDParser( const OUString& rFile ) :
     m_pFontList = getKey( OUString( "Font" ) );
     if (m_pFontList == 0) {
         OSL_TRACE(
-            OSL_LOG_PREFIX "Warning: no Font in %s\n",
+            "Warning: no Font in %s\n",
             OUStringToOString(m_aFile, RTL_TEXTENCODING_UTF8).getStr());
     }
 


More information about the Libreoffice-commits mailing list