From 2f365ae7ec07878ed4c3148ab56cd8b1d222f0db Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Fri, 21 Dec 2012 19:39:46 -0800 Subject: [PATCH] Fix GCC warning about parentheses in QtPlatformSupport atspiadaptor.cpp:2140:12: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=parentheses] Change-Id: Ib21308f9c1b3bf813fed803228d8adbcc3ce7e9f Reviewed-by: Frederik Gladhorn --- src/platformsupport/linuxaccessibility/atspiadaptor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/platformsupport/linuxaccessibility/atspiadaptor.cpp b/src/platformsupport/linuxaccessibility/atspiadaptor.cpp index c88f89b634..534cf4b73a 100644 --- a/src/platformsupport/linuxaccessibility/atspiadaptor.cpp +++ b/src/platformsupport/linuxaccessibility/atspiadaptor.cpp @@ -2137,8 +2137,9 @@ bool AtSpiAdaptor::valueInterface(const QAIPointer &interface, const QString &fu qAtspiDebug() << "WARNING: AtSpiAdaptor::valueInterface does not implement " << function << message.path(); return false; } - if (!value.canConvert(QVariant::Double)) + if (!value.canConvert(QVariant::Double)) { qAtspiDebug() << "AtSpiAdaptor::valueInterface: Could not convert to double: " << function; + } // explicitly convert to dbus-variant containing one double since atspi expects that // everything else might fail to convert back on the other end