diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-03-12 14:19:04 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-03-13 16:50:43 +0100 |
commit | e4d0bb122a93d243067814b9d43f9c9ab1e4df65 (patch) | |
tree | 44a63f157c5765876518c40f971df4d70e7b2ffa | |
parent | e03c7b3a451a22fdbef57f4a0d5f60f85fa70970 (diff) |
OSL_TRACE: Use format string for GetBuffer()
-rw-r--r-- | sfx2/source/control/dispatch.cxx | 8 |
1 files 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; |