diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-04 22:34:15 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-06 22:08:37 +0000 |
commit | 88072f1292facfcb586e4f8b8c9eb61f9d80e02c (patch) | |
tree | d9bd63c5d5111427ae767cc3722d11a5af634d10 /sfx2/source/appl/appcfg.cxx | |
parent | 778ef20d74ce499e4e0c4b0e3e4506b44938b975 (diff) |
make sfx2 ByteString free
Diffstat (limited to 'sfx2/source/appl/appcfg.cxx')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index ec9fb2d5d054..aef541793047 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -70,6 +70,7 @@ #include <vcl/toolbox.hxx> #include <unotools/localfilehelper.hxx> #include <comphelper/processfactory.hxx> +#include <rtl/strbuf.hxx> #include <rtl/ustrbuf.hxx> #include <sfx2/app.hxx> @@ -152,9 +153,9 @@ IMPL_LINK(SfxEventAsyncer_Impl, TimerHdl, Timer*, pAsyncTimer) #ifdef DBG_UTIL if (!xRef.Is()) { - ByteString aTmp( "SfxEvent: "); - aTmp += ByteString( String( aHint.GetEventName() ), RTL_TEXTENCODING_UTF8 ); - OSL_TRACE( "%s", aTmp.GetBuffer() ); + rtl::OStringBuffer aTmp(RTL_CONSTASCII_STRINGPARAM("SfxEvent: ")); + aTmp.append(rtl::OUStringToOString(aHint.GetEventName(), RTL_TEXTENCODING_UTF8)); + OSL_TRACE( "%s", aTmp.getStr() ); } #endif SFX_APP()->Broadcast( aHint ); @@ -911,9 +912,9 @@ void SfxApplication::NotifyEvent( const SfxEventHint& rEventHint, bool bSynchron #ifdef DBG_UTIL if (!pDoc) { - ByteString aTmp( "SfxEvent: "); - aTmp += ByteString( String( rEventHint.GetEventName() ), RTL_TEXTENCODING_UTF8 ); - OSL_TRACE( "%s", aTmp.GetBuffer() ); + rtl::OStringBuffer aTmp(RTL_CONSTASCII_STRINGPARAM("SfxEvent: ")); + aTmp.append(rtl::OUStringToOString(rEventHint.GetEventName(), RTL_TEXTENCODING_UTF8)); + OSL_TRACE( "%s", aTmp.getStr() ); } #endif Broadcast(rEventHint); |