diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 15:34:22 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2003-04-15 15:34:22 +0000 |
commit | 7a1d5e5f7397a4ea2cff7b02c31bc164d53831e2 (patch) | |
tree | 5c5e215be1d1904b19bc2f309d535d8ce648b8dc /cppuhelper | |
parent | 499b9454d5e0c03fda6d4d925953d769d1f1b480 (diff) |
INTEGRATION: CWS dbgmacros1 (1.19.10); FILE MERGED
2003/04/09 10:40:10 kso 1.19.10.1: #108413# - debug macro unification.
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/component_context.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index 216150b47136..79159e042036 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -2,9 +2,9 @@ * * $RCSfile: component_context.cxx,v $ * - * $Revision: 1.19 $ + * $Revision: 1.20 $ * - * last change: $Author: hr $ $Date: 2003-03-19 17:23:33 $ + * last change: $Author: vg $ $Date: 2003-04-15 16:34:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -63,7 +63,7 @@ #define CONTEXT_DIAG #endif -#ifdef _DEBUG +#if OSL_DEBUG_LEVEL > 0 #include <stdio.h> #endif @@ -446,7 +446,7 @@ void ComponentContext::throw_RT( buf.append( str1 ); buf.append( str2 ); OUString msg( buf.makeStringAndClear() ); -#ifdef _DEBUG +#if OSL_DEBUG_LEVEL > 0 OString str( OUStringToOString( msg, RTL_TEXTENCODING_ASCII_US ) ); ::fprintf( stderr, "### %s\n", str.getStr() ); #endif @@ -464,7 +464,7 @@ void ComponentContext::throw_RT( buf.append( str3 ); buf.append( str4 ); OUString msg( buf.makeStringAndClear() ); -#ifdef _DEBUG +#if OSL_DEBUG_LEVEL > 0 OString str( OUStringToOString( msg, RTL_TEXTENCODING_ASCII_US ) ); ::fprintf( stderr, "### %s\n", str.getStr() ); #endif @@ -537,7 +537,7 @@ Any ComponentContext::lookupMap( OUString const & rName ) Reference< lang::XSingleServiceFactory > xFac; if (usesService >>= xFac) // try via old XSingleServiceFactory { -#ifdef _DEBUG +#if OSL_DEBUG_LEVEL > 0 ::fprintf( stderr, "### omitting context for service instanciation!\n" ); #endif xInstance = args.getLength() |