summaryrefslogtreecommitdiffstats
path: root/src/gui/painting
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-08-05 11:56:54 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-08-10 08:11:38 +0200
commitaa25e8d87e1392459fc5de511798356cb5b5f7cb (patch)
tree351869a561bcc2c1079749b893cbc2899c0ed23f /src/gui/painting
parent8da891a7f455c5e1c1c3aa2b41eb62e620927c00 (diff)
QGuiApplication: move two static variables from DATA to BSS
The {mouse,touch}DoubleXDistance variables were initialized to -1, which forces them into the DATA segments. But this value is completely unused, since these variables are also set in initThemeHints(), called from QGuiApplicationPrivate::init(), before their only user, QGuiApplicationPrivate::processMouseEvent(), can possibly execute. By changing the default value to 0, then, we allow the compiler to place these variables into the BSS segment. Change-Id: I86144559ee2410b844f70a4f2499c8d3140d14cf Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/painting')
0 files changed, 0 insertions, 0 deletions