summaryrefslogtreecommitdiffstats
path: root/examples/network/googlesuggest/googlesuggest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/googlesuggest/googlesuggest.cpp')
-rw-r--r--examples/network/googlesuggest/googlesuggest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/googlesuggest/googlesuggest.cpp b/examples/network/googlesuggest/googlesuggest.cpp
index 04a60103b2..b7b6d3ab62 100644
--- a/examples/network/googlesuggest/googlesuggest.cpp
+++ b/examples/network/googlesuggest/googlesuggest.cpp
@@ -217,8 +217,8 @@ void GSuggestCompletion::handleNetworkData(QNetworkReply *networkReply)
while (!xml.atEnd()) {
xml.readNext();
if (xml.tokenType() == QXmlStreamReader::StartElement)
- if (xml.name() == "suggestion") {
- QStringRef str = xml.attributes().value("data");
+ if (xml.name() == u"suggestion") {
+ auto str = xml.attributes().value("data");
choices << str.toString();
}
}