aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-14 17:40:18 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-14 17:40:18 +0200
commit462b8422fd363d6ef3b6882459926a87ca389fe0 (patch)
treeb0729f7745afa8c9f5b95447abc40919e2f5ca77 /libqmenumodel/src
parentedc354a439fa0a42a4684848c4c571b29af8e5ec (diff)
downloadqmenumodel-462b8422fd363d6ef3b6882459926a87ca389fe0.tar.gz
qmenumodel-462b8422fd363d6ef3b6882459926a87ca389fe0.tar.bz2
qmenumodel-462b8422fd363d6ef3b6882459926a87ca389fe0.zip
UnityMenuModel: avoid copying the string to a new std one
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r--libqmenumodel/src/unitymenumodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp
index 6e9a5f7..a407ac1 100644
--- a/libqmenumodel/src/unitymenumodel.cpp
+++ b/libqmenumodel/src/unitymenumodel.cpp
@@ -725,7 +725,7 @@ static QVariant parseVariantString(const QString& string)
return qvariant;
}
- gvariant = g_variant_parse (NULL, string.toStdString().c_str(), NULL, NULL, &error);
+ gvariant = g_variant_parse (NULL, string.toUtf8().data(), NULL, NULL, &error);
if (error) {
qWarning() << "Impossible to parse" << string << "as variant string:"<< error->message;