diff options
author | Kevin Funk <kevin.funk@kdab.com> | 2017-07-04 11:36:34 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-07-08 11:49:55 +0000 |
commit | 9db09b47000301bc3589278b076abdc111276304 (patch) | |
tree | 01dbdb4db4dc72b69d0efd0db650906cf97b9274 /src/gui/painting | |
parent | 2300629df599938d67c13ed134e788db0fe8b21a (diff) |
Fix modernize-use-bool-literals issues
Reported by clang-tidy. Skipped fixes in implementation files, only
changed headers.
Change-Id: I5cfd266b3d4046f90baebc0c538b1b6ab03a02d2
Reviewed-by: Volker Krause <volker.krause@kdab.com>
Reviewed-by: Olivier Goffart (Woboq GmbH) <ogoffart@woboq.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qdrawhelper_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/painting/qdrawhelper_p.h b/src/gui/painting/qdrawhelper_p.h index 1f97621171..ccfc9a2889 100644 --- a/src/gui/painting/qdrawhelper_p.h +++ b/src/gui/painting/qdrawhelper_p.h @@ -885,7 +885,7 @@ do { \ case 1: *--_d = *--_s; \ } while (--n > 0); \ } \ -} while (0) +} while (false) #define QT_MEMCPY_USHORT(dest, src, length) \ do { \ @@ -905,7 +905,7 @@ do { \ case 1: *_d++ = *_s++; \ } while (--n > 0); \ } \ -} while (0) +} while (false) inline ushort qConvertRgb32To16(uint c) { |