From 2e0c1e03e85ef6a20ca362f263c60b141741f698 Mon Sep 17 00:00:00 2001 From: Rohan Kumar Date: Fri, 11 Mar 2016 18:25:32 +0530 Subject: tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I replaced OSL_DEBUG_LEVEL > 1 with OSL_DEBUG_LEVEL > 0 and made sure that it doesn't break the build Change-Id: I9febeed949a24d7bc5afb13dedde03fd812b5b20 Reviewed-on: https://gerrit.libreoffice.org/23077 Reviewed-by: Björn Michaelsen Tested-by: Björn Michaelsen --- cpputools/source/unoexe/unoexe.cxx | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) (limited to 'cpputools') diff --git a/cpputools/source/unoexe/unoexe.cxx b/cpputools/source/unoexe/unoexe.cxx index 806e7a107ed9..a8ddbdf22a07 100644 --- a/cpputools/source/unoexe/unoexe.cxx +++ b/cpputools/source/unoexe/unoexe.cxx @@ -109,13 +109,7 @@ static bool readOption( OUString * pValue, const sal_Char * pOpt, } else { -#if OSL_DEBUG_LEVEL > 1 - out( "\n> identified option -" ); - out( pOpt ); - out( " = " ); - OString tmp = OUStringToOString(aArg, RTL_TEXTENCODING_ASCII_US); - out( tmp.getStr() ); -#endif + SAL_INFO("cpputools.unoexe", "> identified option -" << pOpt << " = " << aArg); ++(*pnIndex); return true; } @@ -123,13 +117,7 @@ static bool readOption( OUString * pValue, const sal_Char * pOpt, else if (aArg.indexOf(aOpt) == 1) { *pValue = aArg.copy(1 + aOpt.getLength()); -#if OSL_DEBUG_LEVEL > 1 - out( "\n> identified option -" ); - out( pOpt ); - out( " = " ); - OString tmp = OUStringToOString(aArg.copy(aOpt.getLength()), RTL_TEXTENCODING_ASCII_US); - out( tmp.getStr() ); -#endif + SAL_INFO("cpputools.unoexe", "> identified option -" << pOpt << " = " << aArg); ++(*pnIndex); return true; @@ -146,10 +134,7 @@ static bool readOption( bool * pbOpt, const sal_Char * pOpt, { ++(*pnIndex); *pbOpt = true; -#if OSL_DEBUG_LEVEL > 1 - out( "\n> identified option --" ); - out( pOpt ); -#endif + SAL_INFO("cpputools.unoexe", "> identified option --" << pOpt); return true; } return false; @@ -557,9 +542,6 @@ SAL_IMPLEMENT_MAIN() if (xComp.is()) xComp->dispose(); -#if OSL_DEBUG_LEVEL > 1 - out( "\n" ); -#endif return nRet; } -- cgit