Fix clang warning about bool to pointer conversion.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Thu, 17 Nov 2011 13:42:48 +0000 (14:42 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 10 May 2013 03:55:55 +0000 (05:55 +0200)
commitaf268af523c3d72fc1b0b573dea6f29e2b3119f6
tree9f4dfc9159d32f705a56c923b747b8801ddc2c14
parentfec87547a80e66aa3f38d3c047f56a76050b9296
Fix clang warning about bool to pointer conversion.

The operation is legal from C++ perspective but only for "false" as it
is guaranteed to be 0. Anyway returning 0 instead of "false" is
logical and it follows coding style used in the modified functions.

(cherry-picked from qt5 commit 50995e6936c5ca75a0a8a48c29bbbedd2cc60567)
Change-Id: Ia09758e8d28599097f5c40eb24722890508afdbc
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@digia.com>
src/dbus/qdbusconnection.cpp
src/dbus/qdbusutil.cpp