cpputools/source/unoexe/unoexe.cxx |   24 +++---------------------
 include/sal/log-areas.dox          |    5 +++++
 2 files changed, 8 insertions(+), 21 deletions(-)

New commits:
commit 2e0c1e03e85ef6a20ca362f263c60b141741f698
Author: Rohan Kumar <rohankanojia...@gmail.com>
Date:   Fri Mar 11 18:25:32 2016 +0530

    tdf#91794 remove OSL_DEBUG_LEVEL > 1 conditionals
    
    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 <bjoern.michael...@canonical.com>
    Tested-by: Björn Michaelsen <bjoern.michael...@canonical.com>

diff --git a/cpputools/source/unoexe/unoexe.cxx 
b/cpputools/source/unoexe/unoexe.cxx
index 806e7a1..a8ddbdf 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;
 }
 
diff --git a/include/sal/log-areas.dox b/include/sal/log-areas.dox
index 207f843..e76e948 100644
--- a/include/sal/log-areas.dox
+++ b/include/sal/log-areas.dox
@@ -100,6 +100,11 @@ certain functionality.
 @li @c cppuhelper
 @li @c cppuhelper.shlib
 
+@section cpputools
+
+@li @c cpputools
+@li @c cpputools.unoexe
+
 @section cui
 
 @li @c cui.customize
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to