diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:30:57 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:50:44 +0100 |
commit | 6099c5b1139bb0e10d0da831bd21e050a2a65f02 (patch) | |
tree | 246f8fd35fda25b7d4ed027f61ea0c623ce58517 /sfx2 | |
parent | 1848de2f4cce84862cf0843e15f38ce5d1f26108 (diff) |
OSL_TRACE: Use format string for GetBuffer()
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appcfg.cxx | 4 | ||||
-rw-r--r-- | sfx2/source/doc/sfxbasemodel.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/appl/appcfg.cxx b/sfx2/source/appl/appcfg.cxx index bfe35837a2f6..48b76959a18a 100644 --- a/sfx2/source/appl/appcfg.cxx +++ b/sfx2/source/appl/appcfg.cxx @@ -155,7 +155,7 @@ IMPL_LINK(SfxEventAsyncer_Impl, TimerHdl, Timer*, pAsyncTimer) { ByteString aTmp( "SfxEvent: "); aTmp += ByteString( String( aHint.GetEventName() ), RTL_TEXTENCODING_UTF8 ); - OSL_TRACE( aTmp.GetBuffer() ); + OSL_TRACE( "%s", aTmp.GetBuffer() ); } #endif SFX_APP()->Broadcast( aHint ); @@ -1007,7 +1007,7 @@ void SfxApplication::NotifyEvent( const SfxEventHint& rEventHint, bool bSynchron { ByteString aTmp( "SfxEvent: "); aTmp += ByteString( String( rEventHint.GetEventName() ), RTL_TEXTENCODING_UTF8 ); - OSL_TRACE( aTmp.GetBuffer() ); + OSL_TRACE( "%s", aTmp.GetBuffer() ); } #endif Broadcast(rEventHint); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index b88e14004731..b09ee2493ca4 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -2858,7 +2858,7 @@ void SfxBaseModel::postEvent_Impl( ::rtl::OUString aName ) #ifdef DBG_UTIL ByteString aTmp( "SfxEvent: "); aTmp += ByteString( String(aName), RTL_TEXTENCODING_UTF8 ); - OSL_TRACE( aTmp.GetBuffer() ); + OSL_TRACE( "%s", aTmp.GetBuffer() ); #endif document::EventObject aEvent( (frame::XModel *)this, aName ); ::cppu::OInterfaceContainerHelper aIC( m_aMutex ); |