From f85fc1cdda3e84b05cefa1d6ca4e666bb76500cc Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 23 Jul 2013 21:46:39 +0200 Subject: [PATCH] fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFO Change-Id: I41efcb94121a005d9f44cc17e8ecb5598e8ffba8 Reviewed-on: https://gerrit.libreoffice.org/5057 Reviewed-by: Fridrich Strba Tested-by: Fridrich Strba --- include/sal/log-areas.dox | 6 ++++++ sfx2/inc/pch/precompiled_sfx.hxx | 1 - sfx2/source/appl/appopen.cxx | 3 +-- sfx2/source/appl/imagemgr.cxx | 1 - sfx2/source/doc/objcont.cxx | 3 +-- sfx2/source/doc/sfxbasemodel.cxx | 7 ++----- 6 files changed, 10 insertions(+), 11 deletions(-) diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox index 6622069cc41e..04b7ad2c0398 100644 --- a/include/sal/log-areas.dox +++ b/include/sal/log-areas.dox @@ -201,6 +201,12 @@ certain functionality. @li @c sdext.pdfimport.pdfparse @li @c sdext.presenter +@section sfx2 + +@li @c sfx2 +@li @c sfx2.doc +@li @c sfx2.appl + @section sfx @li @c sfx diff --git a/sfx2/inc/pch/precompiled_sfx.hxx b/sfx2/inc/pch/precompiled_sfx.hxx index 53a4811e796b..652bb1359cfe 100644 --- a/sfx2/inc/pch/precompiled_sfx.hxx +++ b/sfx2/inc/pch/precompiled_sfx.hxx @@ -620,7 +620,6 @@ #include #include #include -#include #include #include #include diff --git a/sfx2/source/appl/appopen.cxx b/sfx2/source/appl/appopen.cxx index 3c128351423c..b05b71469eda 100644 --- a/sfx2/source/appl/appopen.cxx +++ b/sfx2/source/appl/appopen.cxx @@ -75,7 +75,6 @@ #include -#include #include #include @@ -1127,7 +1126,7 @@ void SfxApplication::OpenDocExec_Impl( SfxRequest& rReq ) Reference < XDispatchProvider > xProv( xTargetFrame, UNO_QUERY ); Reference < XDispatch > xDisp = xProv.is() ? xProv->queryDispatch( aURL, aTarget, FrameSearchFlag::ALL ) : Reference < XDispatch >();; - RTL_LOGFILE_PRODUCT_CONTEXT( aLog2, "PERFORMANCE - SfxApplication::OpenDocExec_Impl" ); + SAL_INFO( "sfx2.appl", "PERFORMANCE - SfxApplication::OpenDocExec_Impl" ); if ( xDisp.is() ) xDisp->dispatch( aURL, aArgs ); } diff --git a/sfx2/source/appl/imagemgr.cxx b/sfx2/source/appl/imagemgr.cxx index 67e440650f31..a19e7bc34828 100644 --- a/sfx2/source/appl/imagemgr.cxx +++ b/sfx2/source/appl/imagemgr.cxx @@ -29,7 +29,6 @@ #include #include #include -#include #include "sfx2/imgmgr.hxx" #include diff --git a/sfx2/source/doc/objcont.cxx b/sfx2/source/doc/objcont.cxx index 811836910891..15c98d9f0fb8 100644 --- a/sfx2/source/doc/objcont.cxx +++ b/sfx2/source/doc/objcont.cxx @@ -41,7 +41,6 @@ #include #include #include -#include #include #include @@ -164,7 +163,7 @@ SfxObjectShell::CreatePreviewMetaFile_Impl( sal_Bool bFullContent ) const aDevice.SetDigitLanguage( eLang ); { - RTL_LOGFILE_PRODUCT_CONTEXT( aLog, "PERFORMANCE SfxObjectShell::CreatePreviewMetaFile_Impl" ); + SAL_INFO( "sfx2.doc", "PERFORMANCE SfxObjectShell::CreatePreviewMetaFile_Impl" ); ((SfxObjectShell*)this)->DoDraw( &aDevice, Point(0,0), aTmpSize, JobSetup(), nAspect ); } pFile->Stop(); diff --git a/sfx2/source/doc/sfxbasemodel.cxx b/sfx2/source/doc/sfxbasemodel.cxx index 634b4c4ca108..5efb2b44f95d 100644 --- a/sfx2/source/doc/sfxbasemodel.cxx +++ b/sfx2/source/doc/sfxbasemodel.cxx @@ -74,7 +74,6 @@ #include #include #include -#include #include #include #include @@ -1556,8 +1555,7 @@ void SAL_CALL SfxBaseModel::storeSelf( const Sequence< beans::PropertyValue > io::IOException, RuntimeException ) { - RTL_LOGFILE_PRODUCT_CONTEXT( aPerfLog, "PERFORMANCE - SfxBaseModel::storeSelf" ); - + SAL_INFO( "sfx2.doc", "PERFORMANCE - SfxBaseModel::storeSelf" ); SfxModelGuard aGuard( *this ); if ( m_pData->m_pObjectShell.Is() ) @@ -1685,8 +1683,7 @@ void SAL_CALL SfxBaseModel::storeAsURL( const OUString& rURL const Sequence< beans::PropertyValue >& rArgs ) throw (io::IOException, RuntimeException) { - RTL_LOGFILE_PRODUCT_CONTEXT( aPerfLog, "PERFORMANCE - SfxBaseModel::storeAsURL" ); - + SAL_INFO( "sfx2.doc", "PERFORMANCE - SfxBaseModel::storeAsURL" ); SfxModelGuard aGuard( *this ); if ( m_pData->m_pObjectShell.Is() )