[Libreoffice-commits] .: 4 commits - cppu/source stoc/source stoc/test
Thomas Arnhold
tarnhold at kemper.freedesktop.org
Tue Mar 15 08:55:42 PDT 2011
cppu/source/uno/lbenv.cxx | 3 +--
stoc/source/corereflection/base.hxx | 2 --
stoc/source/corereflection/crefl.cxx | 2 --
stoc/test/testconv.cxx | 2 +-
4 files changed, 2 insertions(+), 7 deletions(-)
New commits:
commit 2353e7bf4a7e5cc2859ff49fcfe76d5257422305
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Tue Mar 15 06:27:59 2011 +0100
Remove TRACE usage (macro was empty)
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index 6c4f262..7e08a32 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -106,7 +106,6 @@ IdlReflectionServiceImpl::IdlReflectionServiceImpl(
//__________________________________________________________________________________________________
IdlReflectionServiceImpl::~IdlReflectionServiceImpl()
{
- TRACE( "> IdlReflectionServiceImpl dtor <\n" );
g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
}
@@ -177,7 +176,6 @@ Sequence< sal_Int8 > IdlReflectionServiceImpl::getImplementationId()
void IdlReflectionServiceImpl::dispose()
throw(::com::sun::star::uno::RuntimeException)
{
- TRACE( "> disposing corereflection... <" );
OComponentHelper::dispose();
MutexGuard aGuard( _aComponentMutex );
commit 16d9cd1ff2502ffcc6bd5211bc3fcc905746275a
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Sun Mar 13 17:48:58 2011 +0100
Remove unused TRACE macro
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx
index 0116bbf..31610f8 100644
--- a/stoc/source/corereflection/base.hxx
+++ b/stoc/source/corereflection/base.hxx
@@ -26,8 +26,6 @@
*
************************************************************************/
// #define TEST_LIST_CLASSES
-// #define TRACE(x) OSL_TRACE(x)
-#define TRACE(x)
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
commit e65d81e645bbe6b250354b01b2ad81e139dea1e4
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Sun Mar 13 17:37:15 2011 +0100
Use format string on OSL_TRACE()
diff --git a/cppu/source/uno/lbenv.cxx b/cppu/source/uno/lbenv.cxx
index 66bcaf9..331662c 100644
--- a/cppu/source/uno/lbenv.cxx
+++ b/cppu/source/uno/lbenv.cxx
@@ -687,8 +687,7 @@ static void writeLine(
}
else
{
- OSL_TRACE( pLine );
- OSL_TRACE( "\n" );
+ OSL_TRACE( "%s\n", pLine );
}
}
}
commit aa9d8ffe3398401992b7dbdd26ef62104a440441
Author: Thomas Arnhold <thomas at arnhold.org>
Date: Sun Mar 13 17:27:39 2011 +0100
Use format string on printf()
diff --git a/stoc/test/testconv.cxx b/stoc/test/testconv.cxx
index 5cbc3dc..083603e 100644
--- a/stoc/test/testconv.cxx
+++ b/stoc/test/testconv.cxx
@@ -84,7 +84,7 @@ static void printValue( const Any & rVal )
char ar[2];
ar[0] = (char)*(sal_Unicode *)rVal.getValue();
ar[1] = 0;
- printf( ar );
+ printf( "%s", ar );
break;
}
case TypeClass_BYTE:
More information about the Libreoffice-commits
mailing list