QtGui: Use isEmpty() to check for empty string
This commit addresses a comment from the review of QTBUG-98434. Use isEmpty() to check whether the string is empty or not. Task-number: QTBUG-103100 Change-Id: Ia7c298bc4436d974b0369e178a370764c1dbe051 Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io> Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
8b9c7fa53a
commit
cf396c2da9
@ -2353,7 +2353,7 @@ bool AtSpiAdaptor::editableTextInterface(QAccessibleInterface *interface, const
|
||||
else
|
||||
replaceTextFallback(interface, 0, -1, newContents);
|
||||
connection.send(message.createReply(true));
|
||||
} else if (function == ""_L1) {
|
||||
} else if (function.isEmpty()) {
|
||||
connection.send(message.createReply());
|
||||
} else {
|
||||
qCDebug(lcAccessibilityAtspi) << "WARNING: AtSpiAdaptor::editableTextInterface does not implement " << function << message.path();
|
||||
|
Loading…
x
Reference in New Issue
Block a user