summaryrefslogtreecommitdiff
path: root/src/plugins/qmlprojectmanager/qmlproject.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-02 18:26:51 +0100
committerTobias Hunger <tobias.hunger@theqtcompany.com>2016-02-03 08:29:08 +0000
commitf4296d7504e87d291232bc13caa99a439d2393ab (patch)
tree66892ae3ded5333a7036401031effaf228921d3a /src/plugins/qmlprojectmanager/qmlproject.cpp
parent6a3e687d140cad3dec006b2d5fa8982d4b10f31c (diff)
downloadqt-creator-f4296d7504e87d291232bc13caa99a439d2393ab.tar.gz
ProjectExplorer: Modernize
* Use override where appropriate * Use pragma once * Make more constructors explicit Change-Id: I2865fe10f288e3de570826058e43b70a0cb4ee37 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/qmlprojectmanager/qmlproject.cpp')
-rw-r--r--src/plugins/qmlprojectmanager/qmlproject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qmlprojectmanager/qmlproject.cpp b/src/plugins/qmlprojectmanager/qmlproject.cpp
index 43f1d56432..56ff35ec15 100644
--- a/src/plugins/qmlprojectmanager/qmlproject.cpp
+++ b/src/plugins/qmlprojectmanager/qmlproject.cpp
@@ -338,7 +338,7 @@ Project::RestoreResult QmlProject::fromMap(const QVariantMap &map, QString *erro
if (!activeTarget()) {
// find a kit that matches prerequisites (prefer default one)
QList<Kit*> kits = KitManager::matchingKits(
- std::function<bool(const Kit *)>([this](const Kit *k) -> bool {
+ KitMatcher(std::function<bool(const Kit *)>([this](const Kit *k) -> bool {
if (!k->isValid())
return false;
@@ -367,7 +367,7 @@ Project::RestoreResult QmlProject::fromMap(const QVariantMap &map, QString *erro
}
return version->qtVersion() >= minVersion && hasViewer;
- }));
+ })));
if (!kits.isEmpty()) {
Kit *kit = 0;