diff options
author | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-10-25 20:01:23 +0200 |
---|---|---|
committer | Marco Trevisan (Treviño) <mail@3v1n0.net> | 2016-10-25 20:01:23 +0200 |
commit | 0d1bfd69b848b2c86b48a3de198bc7dad9c96441 (patch) | |
tree | 3c36858a15f7724317f6dc8a0749bf2b491e7924 /libqmenumodel/src | |
parent | 307efb494989e3be1086731dc591c886d5f57583 (diff) | |
download | qmenumodel-0d1bfd69b848b2c86b48a3de198bc7dad9c96441.tar.gz qmenumodel-0d1bfd69b848b2c86b48a3de198bc7dad9c96441.tar.bz2 qmenumodel-0d1bfd69b848b2c86b48a3de198bc7dad9c96441.zip |
UnityMenuModel: avoid copy on assignment
Diffstat (limited to 'libqmenumodel/src')
-rw-r--r-- | libqmenumodel/src/unitymenumodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libqmenumodel/src/unitymenumodel.cpp b/libqmenumodel/src/unitymenumodel.cpp index 695d053..aac1d92 100644 --- a/libqmenumodel/src/unitymenumodel.cpp +++ b/libqmenumodel/src/unitymenumodel.cpp @@ -661,7 +661,7 @@ bool UnityMenuModel::loadExtendedAttributes(int position, const QVariantMap &sch continue; } - QVariant qvalue = attributeToQVariant(value, type); + const QVariant &qvalue = attributeToQVariant(value, type); if (qvalue.isValid()) extendedAttrs->insert(qtify_name (name.toUtf8()), qvalue); else |