diff --git a/shell/source/cmdmail/cmdmailsuppl.cxx b/shell/source/cmdmail/cmdmailsuppl.cxx index 7b1b1c1b2b8b..a01d75253726 100644 --- a/shell/source/cmdmail/cmdmailsuppl.cxx +++ b/shell/source/cmdmail/cmdmailsuppl.cxx @@ -220,7 +220,7 @@ void SAL_CALL CmdMailSuppl::sendSimpleMailMessage( const Reference< XSimpleMailM { m_xConfigurationProvider.clear(); OSL_TRACE( "RuntimeException caught accessing configuration provider." ); - OSL_TRACE( OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); + OSL_TRACE( "%s", OUStringToOString( e.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); throw e; } diff --git a/svx/source/form/fmtextcontrolshell.cxx b/svx/source/form/fmtextcontrolshell.cxx index a2b797317909..db5a566a6e2b 100644 --- a/svx/source/form/fmtextcontrolshell.cxx +++ b/svx/source/form/fmtextcontrolshell.cxx @@ -648,7 +648,7 @@ namespace svx sMessage += sUnoSlotNameAscii; if ( !bFeatureIsEnabled ) sMessage += " (disabled)"; - OSL_TRACE( sMessage.getStr() ); + OSL_TRACE( "%s", sMessage.getStr() ); #endif lcl_translateUnoStateToItem( nSlotId, aFeature->second->getFeatureState(), _rSet ); @@ -659,7 +659,7 @@ namespace svx ::rtl::OString sMessage( "FmTextControlShell::transferFeatureStatesToItemSet: found a feature state for " ); sMessage += sUnoSlotNameAscii; sMessage += ", but could not translate it into an item!"; - OSL_TRACE( sMessage.getStr() ); + OSL_TRACE( "%s", sMessage.getStr() ); } #endif } @@ -1079,7 +1079,7 @@ namespace svx #if OSL_DEBUG_LEVEL > 0 ::rtl::OString sTrace( "FmTextControlShell::formActivated: 0x" ); sTrace += ::rtl::OString::valueOf( (sal_IntPtr)_rxController.get(), 16 ); - OSL_TRACE( sTrace.getStr() ); + OSL_TRACE( "%s", sTrace.getStr() ); #endif DBG_ASSERT( _rxController.is(), "FmTextControlShell::formActivated: invalid controller!" ); @@ -1107,7 +1107,7 @@ namespace svx #if OSL_DEBUG_LEVEL > 0 ::rtl::OString sTrace( "FmTextControlShell::formDeactivated: 0x" ); sTrace += ::rtl::OString::valueOf( (sal_IntPtr)_rxController.get(), 16 ); - OSL_TRACE( sTrace.getStr() ); + OSL_TRACE( "%s", sTrace.getStr() ); #endif (void)_rxController; @@ -1360,7 +1360,7 @@ namespace svx #if OSL_DEBUG_LEVEL > 0 ::rtl::OString sTrace( "FmTextControlShell::focusGained: 0x" ); sTrace += ::rtl::OString::valueOf( (sal_IntPtr)xControl.get(), 16 ); - OSL_TRACE( sTrace.getStr() ); + OSL_TRACE( "%s", sTrace.getStr() ); #endif DBG_ASSERT( xControl.is(), "FmTextControlShell::focusGained: suspicious focus event!" ); @@ -1376,7 +1376,7 @@ namespace svx #if OSL_DEBUG_LEVEL > 0 ::rtl::OString sTrace( "FmTextControlShell::focusLost: 0x" ); sTrace += ::rtl::OString::valueOf( (sal_IntPtr)xControl.get(), 16 ); - OSL_TRACE( sTrace.getStr() ); + OSL_TRACE( "%s", sTrace.getStr() ); #endif m_bActiveControl = false;