diff options
author | Tor Lillqvist <tml@collabora.com> | 2019-05-03 17:33:49 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2019-05-03 21:36:53 +0200 |
commit | 9ff8bdcd33cb93998eb7d6b151e310634b88bdfc (patch) | |
tree | db8aa67452efe6241dda36fbf8514426f9923cb6 /include/vcl/debugevent.hxx | |
parent | fdab8ee608297bb618ae911f46b525d06eb4cac1 (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 'include/vcl/debugevent.hxx')
-rw-r--r-- | include/vcl/debugevent.hxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/vcl/debugevent.hxx b/include/vcl/debugevent.hxx index 32afcfc24737..fe0eefcce74a 100644 --- a/include/vcl/debugevent.hxx +++ b/include/vcl/debugevent.hxx @@ -10,8 +10,6 @@ #ifndef INCLUDED_VCL_DEBUGEVENT_HXX #define INCLUDED_VCL_DEBUGEVENT_HXX -#if OSL_DEBUG_LEVEL > 0 - #include <vcl/dllapi.h> #include <vcl/timer.hxx> #include <sal/types.h> @@ -33,8 +31,6 @@ class VCL_DLLPUBLIC DebugEventInjector : private Timer { static DebugEventInjector *getCreate(); }; -#endif // OSL_DEBUG_LEVEL > 0 - #endif // INCLUDED_VCL_DEBUGEVENT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |