CmakePM: Fix compile for gcc4.9

Change-Id: Iecd2dc6df45199de049b02f24b1d1961b296ee2d
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
Christian Stenger
2018-05-02 15:27:41 +02:00
committed by Tobias Hunger
parent 4749a919a6
commit 8f6a560ed7

View File

@@ -731,7 +731,7 @@ ServerModeReader::addCMakeLists(CMakeProjectNode *root, const QList<FileNode *>
if (cmakeDirs.contains(fp)) {
auto fn = std::make_unique<CMakeListsNode>(fp);
cmakeListsNodes.insert(fp, fn.get());
return fn;
return std::move(fn);
}
return std::make_unique<FolderNode>(fp);