summaryrefslogtreecommitdiff
path: root/vcl/source/window/debugevent.cxx
AgeCommit message (Collapse)AuthorFilesLines
2019-05-03Compile the DebugEventInjector code always, not only when OSL_DEBUG_LEVEL > 0Tor Lillqvist1-4/+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>
2018-10-19loplugin:staticvar in vclNoel Grandin1-3/+3
Change-Id: I2bdab84dc81e0545aa96542caec213db61765f68 Reviewed-on: https://gerrit.libreoffice.org/61922 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-09-14loplugin:constfields in vclNoel Grandin1-3/+3
Change-Id: I1072642be4fdfa720e61f2d7bad3c2701eb81610 Reviewed-on: https://gerrit.libreoffice.org/60430 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2018-07-31Add missing sal/log.hxx headersGabor Kelemen1-0/+1
rtl/string.hxx and rtl/ustring.hxx both unnecessarily #include <sal/log.hxx> (and don't make use of it themselves), but many other files happen to depend on it. This is a continuation of commit 6ff2d84ade299cb3d14d4110e4cf1a4b8070c030 to be able to remove those unneeded includes. This commit adds missing headers to every file found by: grep -FwL sal/log.hxx $(git grep -Elw 'SAL_INFO|SAL_INFO_IF|SAL_WARN|SAL_WARN_IF|SAL_DETAIL_LOG_STREAM|SAL_WHERE|SAL_STREAM|SAL_DEBUG') to directory vcl Change-Id: I205fe0f4e80a66cd9c3b19f7e9716411da1d1cf5 Reviewed-on: https://gerrit.libreoffice.org/58221 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2018-01-12More loplugin:cstylecast: vclStephan Bergmann1-5/+5
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I363c01a1ae9e863fca4fb4589829492d7280d711
2017-10-23loplugin:includeform: vclStephan Bergmann1-2/+2
Change-Id: Id7dea3917740aaf4db8dada5e2bea6e117d714ea
2017-10-02Give name to debug event injectorPranav Kant1-1/+2
Change-Id: I3468776797426b04c1cb3206dbb194837a652e16
2017-09-14clang-tidy modernize-use-emplace in vclNoel Grandin1-1/+1
Change-Id: Ie0a6d105b0167431275e628935df4f4c1a36d070 Reviewed-on: https://gerrit.libreoffice.org/42259 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-07-31loplugin:oncevarNoel Grandin1-1/+1
extend oncevar to any POD type Change-Id: Ia98ee0a67f183e40fb0c38477760124b2c411dc0 Reviewed-on: https://gerrit.libreoffice.org/40564 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-06-17loplugin:unusedfields in vcl part3Noel Grandin1-6/+0
Change-Id: I5a6319ba1667af6e9b7b92c22f858188c28c4c61 Reviewed-on: https://gerrit.libreoffice.org/38835 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-11-29Rewrite some (trivial) assignments inside if/while conditions: vclStephan Bergmann1-5/+6
Change-Id: I26fd9bf9838b0d9d6cf35dc62195216a0c1333ee
2016-06-10tdf#96099 Remove various smart pointer typedefs in vclMark Page1-3/+2
Change-Id: I4ac1bb25d3d63f150b42d9e1708efc344bbdb6a7 Reviewed-on: https://gerrit.libreoffice.org/26113 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-13clang-tidy modernize-loop-convert in vclNoel Grandin1-3/+3
Change-Id: I79e97a4826bfe3918de223cccf48646a1404f901 Reviewed-on: https://gerrit.libreoffice.org/24922 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10Convert SAL_EVENT to scoped enumNoel Grandin1-16/+16
Change-Id: I4e605e7acfe9d4fe409d32f20880b4c0e85a0ea7
2016-01-16tdf#78431: Clean up pFrame parameter in ImplWindowFrameProcXisco Fauli1-5/+5
Change-Id: I441c1b89a975fa7d31094e66ef3ccad37ce40818 Reviewed-on: https://gerrit.libreoffice.org/21497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann1-8/+8
Change-Id: I05e89f9896170d4df3d1377549ea074f06b884a0
2015-04-09Change tools::Time::GetSystemTicks to sal_uInt64Stephan Bergmann1-1/+1
...as follow-up clean-up after 71fefe1dc2bcda3a4cc18d71e1acaf161cc059f2 "Change 'blink times' to be of type sal_uInt64 and thus consistent with Timer::Get/SetTimeout since 9c7016b5b530ca212b1275f44f9e2fc0527109ee 'Scheduler: Changed uLong to uInt32/uInt64.'" Transitively meant to change quite a number of further time-related places from sal_uLong/sal_uIntPtr to consistently use sal_uInt64. Change-Id: I38eb493943906356138bf58eb098d2f54a3dee34 Reviewed-on: https://gerrit.libreoffice.org/15214 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann1-1/+1
Change-Id: Iad602cece6e328c7f5d5f36adb294c97b152ade3
2015-03-19loplugin:constantfunction: vclNoel Grandin1-6/+0
Change-Id: I985b781a8d53190505fcb1182749cdaf5cd0f8d0
2015-03-06Timer/Idle: adapted inherited funktionsTobias Madl1-1/+1
Change-Id: I7714a4638b03d020820b276028c0819ef054fa26
2014-11-06rename KEY_MODTYPE to KEY_MODIFIERS_MASKNoel Grandin1-3/+3
Change-Id: I7948988e4fd89bf94a98afee15298cd33e2a4d06
2014-10-23fdo#84938: replace MENUITEM constants with enumNoel Grandin1-1/+1
Change-Id: I7b0085af3b13bd6e1a50bf1e0e986d1524b52d7b
2014-10-06use comphelper::rng::uniform_*_distribution everywhereCaolán McNamara1-1/+2
and automatically seed from time on first use coverity#1242393 Don't call rand coverity#1242404 Don't call rand coverity#1242410 Don't call rand and additionally allow 0xFF as a value coverity#1242409 Don't call rand coverity#1242399 Don't call rand coverity#1242372 Don't call rand coverity#1242377 Don't call rand coverity#1242378 Don't call rand coverity#1242379 Don't call rand coverity#1242382 Don't call rand coverity#1242383 Don't call rand coverity#1242402 Don't call rand coverity#1242397 Don't call rand coverity#1242390 Don't call rand coverity#1242389 Don't call rand coverity#1242388 Don't call rand coverity#1242386 Don't call rand coverity#1242384 Don't call rand coverity#1242394 Don't call rand Change-Id: I241feab9cb370e091fd6ccaba2af941eb95bc7cf
2014-10-01fdo#82577: Handle TimeNoel Grandin1-1/+1
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11 Time typedef. Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866 Reviewed-on: https://gerrit.libreoffice.org/11684 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-09-23fdo#82577: Handle WindowNoel Grandin1-7/+7
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
2014-07-01New loplugin:stringconcatStephan Bergmann1-3/+3
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-05-22trunc is C99 only (thus not C++03)Stephan Bergmann1-1/+1
Change-Id: Ia045472386c82369206bfb06dbc8f7a5bde60510
2014-05-22WaE: unused variable 'bHandled'Tor Lillqvist1-10/+16
While at it, make it use SAL_INFO instead of fprintf. Change-Id: Id4018819f8f790bef219e5aca3b6bbb5f6acd6aa
2014-05-22Make the inserted text more European and sensible for now.Michael Meeks1-15/+38
Change-Id: I8b2ecef11362c0fc1dc2b76780140881e769bb89
2014-05-22quit after emitting all the events to allow valgrinding.Michael Meeks1-5/+8
Change-Id: Ibee9d8f00008dd0a266db276772d48deb0bd9d18
2014-05-22Initial cut at some infinite monkeys work.Michael Meeks1-0/+255
Change-Id: I71c7fe027262305893d8eabee94a726f4aa909d6