diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-08 14:31:06 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-11 23:41:07 +0100 |
commit | 06522797788cd1497ef081f897eb3bef40aaff97 (patch) | |
tree | e90a9b6c89cd0d0b919b1510c89865b293925819 /tools | |
parent | ce32db685df6e18e4785df577febd53ef2987aa3 (diff) |
Move DBG_TRACE to OSL_TRACE for strings GetBuffer()
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/generic/config.cxx | 12 | ||||
-rw-r--r-- | tools/source/stream/strmos2.cxx | 8 | ||||
-rw-r--r-- | tools/source/stream/strmunx.cxx | 8 |
3 files changed, 14 insertions, 14 deletions
diff --git a/tools/source/generic/config.cxx b/tools/source/generic/config.cxx index 867a189cb2fa..17e1f43ece71 100644 --- a/tools/source/generic/config.cxx +++ b/tools/source/generic/config.cxx @@ -799,7 +799,7 @@ Config::Config( const XubString& rFileName ) ByteString aTraceStr( "Config::Config( " ); aTraceStr += ByteString( maFileName, RTL_TEXTENCODING_UTF8 ); aTraceStr += " )"; - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif } @@ -1000,7 +1000,7 @@ ByteString Config::ReadKey( const ByteString& rKey, const ByteString& rDefault ) aTraceStr += GetGroup(); aTraceStr += " in "; aTraceStr += ByteString( maFileName, RTL_TEXTENCODING_UTF8 ); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif // Config-Daten evt. updaten @@ -1037,7 +1037,7 @@ void Config::WriteKey( const ByteString& rKey, const ByteString& rStr ) aTraceStr += GetGroup(); aTraceStr += " in "; aTraceStr += ByteString( maFileName, RTL_TEXTENCODING_UTF8 ); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); DBG_ASSERTWARNING( rStr != ReadKey( rKey ), "Config::WriteKey() with the same Value" ); #endif @@ -1158,7 +1158,7 @@ USHORT Config::GetKeyCount() const aTraceStr += GetGroup(); aTraceStr += " in "; aTraceStr += ByteString( maFileName, RTL_TEXTENCODING_UTF8 ); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif // Config-Daten evt. updaten @@ -1194,7 +1194,7 @@ ByteString Config::GetKeyName( USHORT nKey ) const aTraceStr += GetGroup(); aTraceStr += " in "; aTraceStr += ByteString( maFileName, RTL_TEXTENCODING_UTF8 ); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif // Key suchen und Name zurueckgeben @@ -1229,7 +1229,7 @@ ByteString Config::ReadKey( USHORT nKey ) const aTraceStr += GetGroup(); aTraceStr += " in "; aTraceStr += ByteString( maFileName, RTL_TEXTENCODING_UTF8 ); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif // Key suchen und Value zurueckgeben diff --git a/tools/source/stream/strmos2.cxx b/tools/source/stream/strmos2.cxx index 90224ccbc91f..896ccdb8db8e 100644 --- a/tools/source/stream/strmos2.cxx +++ b/tools/source/stream/strmos2.cxx @@ -194,7 +194,7 @@ ULONG SvFileStream::GetData( void* pData, ULONG nSize ) aTraceStr += ByteString::CreateFromInt64(nSize); aTraceStr += " Bytes from "; aTraceStr += ByteString(aFilename, osl_getThreadTextEncoding()); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif ULONG nCount = 0L; @@ -221,7 +221,7 @@ ULONG SvFileStream::PutData( const void* pData, ULONG nSize ) aTraceStr += ByteString::CreateFromInt64(nSize); aTraceStr += " Bytes to "; aTraceStr += ByteString(aFilename, osl_getThreadTextEncoding()); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif ULONG nCount = 0L; @@ -498,7 +498,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nOpenMode ) #ifdef DBG_UTIL ByteString aTraceStr( "SvFileStream::Open(): " ); aTraceStr += aFileNameA; - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif APIRET nRet = DosOpen( aFileNameA.GetBuffer(), &pInstanceData->hFile, @@ -563,7 +563,7 @@ void SvFileStream::Close() #ifdef DBG_UTIL ByteString aTraceStr( "SvFileStream::Close(): " ); aTraceStr += ByteString(aFilename, osl_getThreadTextEncoding()); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif if( nLockCounter ) diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx index cbe6a658fce6..caeee6b9f8b8 100644 --- a/tools/source/stream/strmunx.cxx +++ b/tools/source/stream/strmunx.cxx @@ -358,7 +358,7 @@ sal_Size SvFileStream::GetData( void* pData, sal_Size nSize ) aTraceStr += ByteString::CreateFromInt64(nSize); aTraceStr += " Bytes from "; aTraceStr += ByteString(aFilename, osl_getThreadTextEncoding()); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif int nRead = 0; @@ -384,7 +384,7 @@ sal_Size SvFileStream::PutData( const void* pData, sal_Size nSize ) aTraceStr += ByteString::CreateFromInt64(nSize); aTraceStr += " Bytes to "; aTraceStr += ByteString(aFilename, osl_getThreadTextEncoding()); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif int nWrite = 0; @@ -624,7 +624,7 @@ void SvFileStream::Open( const String& rFilename, StreamMode nOpenMode ) #ifdef DBG_UTIL ByteString aTraceStr( "SvFileStream::Open(): " ); aTraceStr += aLocalFilename; - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif if ( lstat( aLocalFilename.GetBuffer(), &buf ) == 0 ) @@ -747,7 +747,7 @@ void SvFileStream::Close() #ifdef DBG_UTIL ByteString aTraceStr( "SvFileStream::Close(): " ); aTraceStr += ByteString(aFilename, osl_getThreadTextEncoding()); - DBG_TRACE( aTraceStr.GetBuffer() ); + OSL_TRACE( aTraceStr.GetBuffer() ); #endif Flush(); |