summaryrefslogtreecommitdiff
path: root/framework/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-06-19 23:21:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-06-20 11:01:54 +0100
commit12870341199d9218322865617e1b2dac4178fa99 (patch)
tree6de16bd5938ea3d896b8e461a37a1cdc0ef09bd4 /framework/source
parent347738eade7b1077067926930b8efef257d4776d (diff)
ByteString -> rtl::OStringBuffer
Diffstat (limited to 'framework/source')
-rw-r--r--framework/source/helper/persistentwindowstate.cxx4
-rw-r--r--framework/source/inc/pattern/window.hxx6
-rw-r--r--framework/source/layoutmanager/layoutmanager.cxx22
-rw-r--r--framework/source/loadenv/loadenv.cxx2
4 files changed, 18 insertions, 16 deletions
diff --git a/framework/source/helper/persistentwindowstate.cxx b/framework/source/helper/persistentwindowstate.cxx
index 7deeaa09168f..d85e00375adb 100644
--- a/framework/source/helper/persistentwindowstate.cxx
+++ b/framework/source/helper/persistentwindowstate.cxx
@@ -297,7 +297,7 @@ void PersistentWindowState::implst_setWindowStateOnConfig(const css::uno::Refere
{
sal_uLong nMask = WINDOWSTATE_MASK_ALL;
nMask &= ~(WINDOWSTATE_MASK_MINIMIZED);
- sWindowState = B2U_ENC(
+ sWindowState = rtl::OStringToOUString(
((SystemWindow*)pWindow)->GetWindowState(nMask),
RTL_TEXTENCODING_UTF8);
}
@@ -341,7 +341,7 @@ void PersistentWindowState::implst_setWindowStateOnWindow(const css::uno::Refere
::rtl::OUString sOldWindowState = ::rtl::OStringToOUString( pSystemWindow->GetWindowState(), RTL_TEXTENCODING_ASCII_US );
if ( sOldWindowState != sWindowState )
- pSystemWindow->SetWindowState(U2B_ENC(sWindowState,RTL_TEXTENCODING_UTF8));
+ pSystemWindow->SetWindowState(rtl::OUStringToOString(sWindowState,RTL_TEXTENCODING_UTF8));
// <- SOLAR SAFE ------------------------
}
diff --git a/framework/source/inc/pattern/window.hxx b/framework/source/inc/pattern/window.hxx
index faecdaea9105..752f5fe898b4 100644
--- a/framework/source/inc/pattern/window.hxx
+++ b/framework/source/inc/pattern/window.hxx
@@ -72,7 +72,7 @@ static ::rtl::OUString getWindowState(const css::uno::Reference< css::awt::XWind
if (!xWindow.is())
return ::rtl::OUString();
- ByteString sWindowState;
+ rtl::OString sWindowState;
// SOLAR SAFE -> ----------------------------
{
SolarMutexGuard aSolarGuard;
@@ -88,7 +88,7 @@ static ::rtl::OUString getWindowState(const css::uno::Reference< css::awt::XWind
}
// <- SOLAR SAFE ----------------------------
- return B2U_ENC(sWindowState,RTL_TEXTENCODING_UTF8);
+ return rtl::OStringToOUString(sWindowState,RTL_TEXTENCODING_UTF8);
}
//-----------------------------------------------
@@ -116,7 +116,7 @@ static void setWindowState(const css::uno::Reference< css::awt::XWindow >& xWind
)
)
{
- ((SystemWindow*)pWindow)->SetWindowState(U2B_ENC(sWindowState,RTL_TEXTENCODING_UTF8));
+ ((SystemWindow*)pWindow)->SetWindowState(OUStringToOString(sWindowState,RTL_TEXTENCODING_UTF8));
}
// <- SOLAR SAFE ----------------------------
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
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx
index e4f73e58c16f..784f6f765d27 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -1794,7 +1794,7 @@ void LoadEnv::impl_applyPersistentWindowState(const css::uno::Reference< css::aw
return;
SystemWindow* pSystemWindow = (SystemWindow*)pWindowCheck;
- pSystemWindow->SetWindowState(U2B_ENC(sWindowState,RTL_TEXTENCODING_UTF8));
+ pSystemWindow->SetWindowState(rtl::OUStringToOString(sWindowState,RTL_TEXTENCODING_UTF8));
// <- SOLAR SAFE
}
}