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 <frederik.gladhorn@digia.com>
This commit is contained in:
parent
ebcc41ed72
commit
2f365ae7ec
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user