forked from qt-creator/qt-creator
CMakeEditor: Fix unused variable
Drop a call to currentProject(), as currentBuildSystem()
already implies currentProject() isn't nullptr.
Amends a998269d7e
Change-Id: Ibf902dc78af5c59c6475366f52d0b3489e989789
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -48,7 +48,6 @@ public:
|
|||||||
CMakeEditor::CMakeEditor()
|
CMakeEditor::CMakeEditor()
|
||||||
{
|
{
|
||||||
CMakeTool *tool = nullptr;
|
CMakeTool *tool = nullptr;
|
||||||
if (auto project = ProjectTree::currentProject())
|
|
||||||
if (auto bs = ProjectTree::currentBuildSystem())
|
if (auto bs = ProjectTree::currentBuildSystem())
|
||||||
tool = CMakeKitAspect::cmakeTool(bs->target()->kit());
|
tool = CMakeKitAspect::cmakeTool(bs->target()->kit());
|
||||||
if (!tool)
|
if (!tool)
|
||||||
|
|||||||
Reference in New Issue
Block a user