diff options
author | Noel Grandin <noel@peralex.com> | 2014-07-14 11:29:02 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-07-14 13:27:30 +0200 |
commit | 34cabe837dbb78bf7531c4bab6f50c4764e64cf5 (patch) | |
tree | 8ffd1e1515a1bfe8b9123650ca5f3813bf291bf0 /tools | |
parent | 09a90c2ff5d39c3ae61b4041c3b39d3da0c640c1 (diff) |
loplugin:unreffun
Change-Id: Idc0f3ef53f48b2e77e4cecbcdbbc44a115c6ec2e
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/debug/debug.cxx | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 4b0a37a3dd53..c956ac2366b7 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -304,20 +304,12 @@ void* DbgFunc( sal_uInt16 nAction, void* pParam ) } } -#else - -void* DbgFunc( sal_uInt16, void* ) { return NULL; } - #endif +#if OSL_DEBUG_LEVEL > 0 TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const char* currentFunction, const char* fileAndLineNo) { -#if OSL_DEBUG_LEVEL == 0 - (void) caught; - (void) currentFunction; - (void) fileAndLineNo; -#else OString sMessage( "caught an exception!" ); sMessage += "\nin function:"; sMessage += currentFunction; @@ -359,9 +351,10 @@ TOOLS_DLLPUBLIC void DbgUnhandledException(const css::uno::Any & caught, const c SAL_DETAIL_LOG_FORMAT( SAL_DETAIL_ENABLE_LOG_WARN, SAL_DETAIL_LOG_LEVEL_WARN, "legacy.osl", fileAndLineNo, "%s", sMessage.getStr()); -#endif } +#endif + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |