aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Adam <cristian.adam@qt.io>2021-02-05 14:38:41 +0100
committerCristian Adam <cristian.adam@qt.io>2021-02-05 13:44:52 +0000
commita8db7721eb3f3f32e52c7390e54e206af5cc1d73 (patch)
treec71aa6a2cbd7c547597b3e5923a2a3c64e47af85
parent87197be604e3c5f8bf39e9aa11fdfea88b6eab75 (diff)
CMakeProjectManager: Do not use dynamic allocation for CMakeTool
ammends 87197be604e3c5f8bf39e9aa11fdfea88b6eab75 Change-Id: I600c0c26b3301607360f93ff6075f7c7d4a1b438 Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--src/plugins/cmakeprojectmanager/cmakesettingspage.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp b/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp
index 8afc148022..052600611d 100644
--- a/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp
+++ b/src/plugins/cmakeprojectmanager/cmakesettingspage.cpp
@@ -144,14 +144,14 @@ public:
m_pathIsFile = fi.isFile();
m_pathIsExecutable = fi.isExecutable();
- auto cmake = std::make_unique<CMakeTool>(m_autodetected ? CMakeTool::AutoDetection
- : CMakeTool::ManualDetection, m_id);
- cmake->setFilePath(m_executable);
- m_isSupported = cmake->hasFileApi();
+ CMakeTool cmake(m_autodetected ? CMakeTool::AutoDetection
+ : CMakeTool::ManualDetection, m_id);
+ cmake.setFilePath(m_executable);
+ m_isSupported = cmake.hasFileApi();
m_tooltip = tr("Version: %1<br>Supports fileApi: %2")
- .arg(QString::fromUtf8(cmake->version().fullVersion))
- .arg(cmake->hasFileApi() ? tr("yes") : tr("no"));
+ .arg(QString::fromUtf8(cmake.version().fullVersion))
+ .arg(cmake.hasFileApi() ? tr("yes") : tr("no"));
}
CMakeToolTreeItem() = default;