cppuhelper/source/factory.cxx | 11 ++--------- cppuhelper/test/testdefaultbootstrapping.cxx | 9 ++------- cppuhelper/test/testlib/defbootstrap_lib.cxx | 13 +++---------- 3 files changed, 7 insertions(+), 26 deletions(-)
New commits: commit d6411207bd83b34b4d6c6fd68cd41d3005228b05 Author: Rohan Kumar <rohankanojia...@gmail.com> Date: Wed Mar 9 17:53:50 2016 +0530 tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals I removed OSL_DEBUG_LEVEL > 1 conditionals to SAL_INFO statements Change-Id: I6f74f5146473464758f35629877a76bb2bc39b4e Reviewed-on: https://gerrit.libreoffice.org/23071 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Björn Michaelsen <bjoern.michael...@canonical.com> diff --git a/cppuhelper/source/factory.cxx b/cppuhelper/source/factory.cxx index f14494f..5748921 100644 --- a/cppuhelper/source/factory.cxx +++ b/cppuhelper/source/factory.cxx @@ -699,9 +699,7 @@ Reference<XInterface > SAL_CALL ORegistryFactoryHelper::createInstanceWithArgume } else if( xModuleFactory.is() ) { -#if OSL_DEBUG_LEVEL > 1 - OSL_TRACE( "### no context ORegistryFactoryHelper::createInstanceWithArgumentsAndContext()!" ); -#endif + SAL_INFO("cppuhelper", "no context ORegistryFactoryHelper::createInstanceWithArgumentsAndContext()!"); return xModuleFactory->createInstanceWithArgumentsAndContext( Arguments, Reference< XComponentContext >() ); } @@ -732,12 +730,7 @@ Reference< XInterface > ORegistryFactoryHelper::createInstanceWithArgumentsAndCo } else if( xModuleFactoryDepr.is() ) { -#if OSL_DEBUG_LEVEL > 1 - if (xContext.is()) - { - OSL_TRACE( "### ignoring context calling ORegistryFactoryHelper::createInstanceWithArgumentsAndContext()!" ); - } -#endif + SAL_INFO_IF(xContext.is(), "cppuhelper", "ignoring context calling ORegistryFactoryHelper::createInstaceWithArgumentsAndContext()!"); return xModuleFactoryDepr->createInstanceWithArguments( rArguments ); } diff --git a/cppuhelper/test/testdefaultbootstrapping.cxx b/cppuhelper/test/testdefaultbootstrapping.cxx index 8e80efa..4e40d25 100644 --- a/cppuhelper/test/testdefaultbootstrapping.cxx +++ b/cppuhelper/test/testdefaultbootstrapping.cxx @@ -50,10 +50,7 @@ SAL_IMPLEMENT_MAIN() if (!arg.isEmpty()) { Reference<XInterface> xInterface = smgr->createInstance(arg); - OString tmp = OUStringToOString(arg, RTL_TEXTENCODING_ASCII_US); -#if OSL_DEBUG_LEVEL > 1 - fprintf(stderr, "got the %s service %p\n", tmp.getStr(), xInterface.get()); -#endif + SAL_INFO("cppuhelper", "got the " << arg << " service " << xInterface.get()); result = result && (xInterface.get() != 0); } @@ -65,9 +62,7 @@ SAL_IMPLEMENT_MAIN() fprintf(stderr, "an exception occurred: %s\n", message.getStr()); } -#if OSL_DEBUG_LEVEL > 1 - OSL_TRACE("---------------------------------- %i", result); -#endif + SAL_INFO("extensions", "---------------------------------- " << result); return result; } diff --git a/cppuhelper/test/testlib/defbootstrap_lib.cxx b/cppuhelper/test/testlib/defbootstrap_lib.cxx index be14184..26d229f 100644 --- a/cppuhelper/test/testlib/defbootstrap_lib.cxx +++ b/cppuhelper/test/testlib/defbootstrap_lib.cxx @@ -43,10 +43,7 @@ static sal_Bool tryService(const char * serviceName) OUString iniName = libraryFileUrl.copy(0, libraryFileUrl.lastIndexOf((sal_Unicode)'.')); // cut the library extension iniName += SAL_CONFIGFILE(""); // add the rc file extension -#if OSL_DEBUG_LEVEL > 1 - OString sIniName = OUStringToOString(iniName, RTL_TEXTENCODING_ASCII_US); - fprintf(stderr, "defbootstrap.cxx:tryService: using ini: %s\n", sIniName.getStr()); -#endif + SAL_INFO("cppuhelper", "using ini: " << iniName); sal_Bool result = sal_True; @@ -57,9 +54,7 @@ static sal_Bool tryService(const char * serviceName) OUString arg = OUString::createFromAscii(serviceName); Reference<XInterface> xInterface = smgr->createInstance(arg); -#if OSL_DEBUG_LEVEL > 1 - fprintf(stderr, "got the %s service %p\n", serviceName, xInterface.get()); -#endif + SAL_INFO("cppuhelper", "got the " << serviceName << " service " << xInterface.get()); result = result && (xInterface.get() != 0); } catch(Exception & exception) { @@ -68,9 +63,7 @@ static sal_Bool tryService(const char * serviceName) fprintf(stderr, "an exception occurred: %s\n", message.getStr()); } -#if OSL_DEBUG_LEVEL > 1 - OSL_TRACE("---------------------------------- %i", result); -#endif + SAL_INFO("cppuhelper", "---------------------------------- " << result); return result; }
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits