From e4d0bb122a93d243067814b9d43f9c9ab1e4df65 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 12 Mar 2011 14:19:04 +0100 Subject: OSL_TRACE: Use format string for GetBuffer() --- sfx2/source/control/dispatch.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sfx2/source/control/dispatch.cxx b/sfx2/source/control/dispatch.cxx index 93f5b410261a..5aa0f4b61d08 100644 --- a/sfx2/source/control/dispatch.cxx +++ b/sfx2/source/control/dispatch.cxx @@ -407,7 +407,7 @@ SfxDispatcher::~SfxDispatcher() #ifdef DBG_UTIL ByteString sTemp( "Delete Dispatcher " ); sTemp += ByteString::CreateFromInt64( (sal_uIntPtr)this ); - OSL_TRACE( sTemp.GetBuffer() ); + OSL_TRACE( "%s", sTemp.GetBuffer() ); DBG_ASSERT( !pImp->bActive, "deleting active Dispatcher" ); #endif @@ -744,7 +744,7 @@ void SfxDispatcher::DoActivate_Impl( sal_Bool bMDI, SfxViewFrame* /* pOld */ ) #ifdef DBG_UTIL ByteString sTemp("Activate Dispatcher "); sTemp += ByteString::CreateFromInt64( (sal_uIntPtr) this ); - OSL_TRACE(sTemp.GetBuffer()); + OSL_TRACE( "%s", sTemp.GetBuffer()); DBG_ASSERT( !pImp->bActive, "Activation error" ); #endif pImp->bActive = sal_True; @@ -761,7 +761,7 @@ void SfxDispatcher::DoActivate_Impl( sal_Bool bMDI, SfxViewFrame* /* pOld */ ) #ifdef DBG_UTIL ByteString sTemp("Non-MDI-Activate Dispatcher"); sTemp += ByteString::CreateFromInt64( (sal_uIntPtr) this ); - OSL_TRACE( sTemp.GetBuffer() ); + OSL_TRACE( "%s", sTemp.GetBuffer() ); #endif } @@ -2697,7 +2697,7 @@ void SfxDispatcher::DebugOutput_Impl() const { SfxShell *pShell = GetShell(nShell-1); const SfxInterface *pIFace = pShell->GetInterface(); - OSL_TRACE(pIFace->GetClassName()); + OSL_TRACE("%s", pIFace->GetClassName().GetBuffer()); } DbgGetData()->nTraceOut = nOld; -- cgit