diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-12-22 16:49:41 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-12-23 16:38:56 +0100 |
commit | ceeb032de6b9e9256f96ce033512529523ea64b1 (patch) | |
tree | 2f1680fa8a4c0f99f9be6e805fca06f1dde242e3 /examples/widgets/itemviews/simpledommodel/main.cpp | |
parent | c013104b0417626077f52f4d2216381382b2d9bd (diff) |
QRawFont: improve the thread-safety checks
384388f2 introduced some checks, and used an assignment in an assert;
that sets off compiler warnings about expressions with side effects
into an assertion. Hence, that code needs to be reworked a bit.
Unfortunately, there's no single define we can use to know if
assertions are enabled or not in Qt, so simply use QT_NO_DEBUG
to enable/disable those checks. The actual "thread" data member
is kept around to avoid break ABI depending on debugging flags.
Change-Id: I8b07e7ff6f81359d6b0653a1d9cc2b720541d1b9
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'examples/widgets/itemviews/simpledommodel/main.cpp')
0 files changed, 0 insertions, 0 deletions