From cf396c2da9b9f8453cd62de0fcb20ed28ab9cd57 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Thu, 15 Sep 2022 17:24:22 +0200 Subject: [PATCH] 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 Reviewed-by: Marc Mutz --- src/gui/accessible/linux/atspiadaptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/accessible/linux/atspiadaptor.cpp b/src/gui/accessible/linux/atspiadaptor.cpp index b30f4f14091..1cd643e0f47 100644 --- a/src/gui/accessible/linux/atspiadaptor.cpp +++ b/src/gui/accessible/linux/atspiadaptor.cpp @@ -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();