summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2019-05-03 17:33:49 +0300
committerTor Lillqvist <tml@collabora.com>2019-05-03 21:36:53 +0200
commit9ff8bdcd33cb93998eb7d6b151e310634b88bdfc (patch)
treedb8aa67452efe6241dda36fbf8514426f9923cb6 /vcl
parentfdab8ee608297bb618ae911f46b525d06eb4cac1 (diff)
Compile the DebugEventInjector code always, not only when OSL_DEBUG_LEVEL > 0
Otherwise if you happen to compile vcl/source/app/svmain.cxx with OSL_DEBUG_LEVEL > 0 but not this file, you get an undefined symbol DebugEventInjector::getCreate(). In general I think our intent is that ideally it should be possible to compile an arbitrary selection of source files with OSL_DEBUG_LEVEL=0, and others with OSL_DEBUG_LEVEL=1. (For debugging functionality that does require consistency across the codebase, we have DBG_UTIL.) Note that DebugEventInjector::getCreate() will be called from InitVCL() only when svmain.cxx is compiled with OSL_DEBUG_LEVEL > 0, though. So for a "production" build with no debug compilation, this change has no run-time effect. Change-Id: I3411edfbbbaae21561363634e5eec5ac0cf53418 Reviewed-on: https://gerrit.libreoffice.org/71757 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/debugevent.cxx4
1 files changed, 0 insertions, 4 deletions
diff --git a/vcl/source/window/debugevent.cxx b/vcl/source/window/debugevent.cxx
index d7d5ec182f14..3aa8d062a0f2 100644
--- a/vcl/source/window/debugevent.cxx
+++ b/vcl/source/window/debugevent.cxx
@@ -20,8 +20,6 @@
#include <window.h>
#include <salwtype.hxx>
-#if OSL_DEBUG_LEVEL > 0
-
DebugEventInjector::DebugEventInjector( sal_uInt32 nMaxEvents) :
Timer("debug event injector")
, mnEventsLeft( nMaxEvents )
@@ -273,6 +271,4 @@ DebugEventInjector *DebugEventInjector::getCreate()
return nullptr;
}
-#endif // OSL_DEBUG_LEVEL > 0
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */