diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:08:30 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 23:08:30 +0000 |
commit | a39770f25b17e996dde6b8024208a611a071211d (patch) | |
tree | 4de40d2fa5cf926d3873cde0a2d84e5dd7137a9c /jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h | |
parent | INTEGRATION: CWS warnings01 (1.9.6); FILE MERGED (diff) | |
download | core-a39770f25b17e996dde6b8024208a611a071211d.tar.gz core-a39770f25b17e996dde6b8024208a611a071211d.zip |
INTEGRATION: CWS warnings01 (1.4.6); FILE MERGED
2005/10/27 15:08:46 pl 1.4.6.1: #i55991# removed warnings for solaris platform
Diffstat (limited to 'jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h b/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h index b270a582d797..1ebacab5772c 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h +++ b/jvmfwk/plugins/sunmajor/pluginlib/diagnostics.h @@ -4,9 +4,9 @@ * * $RCSfile: diagnostics.h,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-07 19:29:26 $ + * last change: $Author: hr $ $Date: 2006-06-20 00:08:30 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -78,7 +78,19 @@ namespace jfw_plugin { -inline void jfw_ensure(bool condition, const sal_Char * pzFile, sal_Int32 line, const rtl::OUString& message) +inline void jfw_ensure(bool + #if OSL_DEBUG_LEVEL > 0 /* prevent warning in pro version */ + condition + #endif + , const sal_Char * + #if OSL_DEBUG_LEVEL > 0 /* prevent warning in pro version */ + pzFile + #endif + , sal_Int32 + #if OSL_DEBUG_LEVEL > 0 /* prevent warning in pro version */ + line + #endif + , const rtl::OUString& message ) { rtl::OString oMsg = rtl::OUStringToOString(message, osl_getThreadTextEncoding()); _OSL_ENSURE(condition, pzFile, line, oMsg.getStr()); |