diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-06-19 23:21:46 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-06-20 11:01:54 +0100 |
commit | 12870341199d9218322865617e1b2dac4178fa99 (patch) | |
tree | 6de16bd5938ea3d896b8e461a37a1cdc0ef09bd4 /framework/source/layoutmanager/layoutmanager.cxx | |
parent | catch by const reference (diff) | |
download | core-12870341199d9218322865617e1b2dac4178fa99.tar.gz core-12870341199d9218322865617e1b2dac4178fa99.zip |
ByteString -> rtl::OStringBuffer
Diffstat (limited to 'framework/source/layoutmanager/layoutmanager.cxx')
-rw-r--r-- | framework/source/layoutmanager/layoutmanager.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/framework/source/layoutmanager/layoutmanager.cxx b/framework/source/layoutmanager/layoutmanager.cxx index c92ec7ea8cf7..63e3f6fb4581 100644 --- a/framework/source/layoutmanager/layoutmanager.cxx +++ b/framework/source/layoutmanager/layoutmanager.cxx @@ -93,6 +93,8 @@ #include <rtl/instance.hxx> #include <unotools/cmdoptions.hxx> +#include <rtl/strbuf.hxx> + #include <algorithm> #include <boost/bind.hpp> @@ -2313,11 +2315,11 @@ throw (RuntimeException) RTL_LOGFILE_TRACE1( "framework (cd100003) ::LayoutManager::lock lockCount=%d", nLockCount ); #ifdef DBG_UTIL - ByteString aStr("LayoutManager::lock "); - aStr += ByteString::CreateFromInt32((long)this); - aStr += " - "; - aStr += ByteString::CreateFromInt32(nLockCount); - OSL_TRACE( aStr.GetBuffer() ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM("LayoutManager::lock ")); + aStr.append(reinterpret_cast<sal_Int64>(this)); + aStr.append(RTL_CONSTASCII_STRINGPARAM(" - ")); + aStr.append(nLockCount); + OSL_TRACE(aStr.getStr()); #endif Any a( nLockCount ); @@ -2335,11 +2337,11 @@ throw (RuntimeException) RTL_LOGFILE_TRACE1( "framework (cd100003) ::LayoutManager::unlock lockCount=%d", nLockCount ); #ifdef DBG_UTIL - ByteString aStr("LayoutManager::unlock "); - aStr += ByteString::CreateFromInt32((long)this); - aStr += " - "; - aStr += ByteString::CreateFromInt32(nLockCount); - OSL_TRACE( aStr.GetBuffer() ); + rtl::OStringBuffer aStr(RTL_CONSTASCII_STRINGPARAM("LayoutManager::unlock ")); + aStr.append(reinterpret_cast<sal_Int64>(this)); + aStr.append(RTL_CONSTASCII_STRINGPARAM(" - ")); + aStr.append(nLockCount); + OSL_TRACE(aStr.getStr()); #endif // conform to documentation: unlock with lock count == 0 means force a layout |