summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qstatictext.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-01 11:13:37 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-02-01 11:13:37 (GMT)
commit81b89c410a0df438db65b6124b4db94c8628c52c (patch)
tree123276bf640d39f3bf35c246a497245e0a4cf3ce /src/gui/text/qstatictext.cpp
parentbb582974e48acacf7ff300cb03b0787b5dfc0b08 (diff)
downloadQt-81b89c410a0df438db65b6124b4db94c8628c52c.zip
Qt-81b89c410a0df438db65b6124b4db94c8628c52c.tar.gz
Qt-81b89c410a0df438db65b6124b4db94c8628c52c.tar.bz2
Don't compare bool to char (avoid warning on MSVC)
Remove unsafe comparison since true is defined as non-zero only.
Diffstat (limited to 'src/gui/text/qstatictext.cpp')
-rw-r--r--src/gui/text/qstatictext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qstatictext.cpp b/src/gui/text/qstatictext.cpp
index d94b9a3..4daa40d 100644
--- a/src/gui/text/qstatictext.cpp
+++ b/src/gui/text/qstatictext.cpp
@@ -254,7 +254,8 @@ QString QStaticText::text() const
*/
void QStaticText::setUseBackendOptimizations(bool on)
{
- if (on == d_ptr->useBackendOptimizations)
+ if ((!on && !d_ptr->useBackendOptimizations)
+ || (on && d_ptr->useBackendOptimizations))
return;
detach();