From c95d42afa6a10c25d4fea7c8194f4f62f79356df Mon Sep 17 00:00:00 2001 From: Russell Greene Date: Sun, 11 Apr 2021 18:35:27 -0400 Subject: [PATCH] fix clang compile errors --- src/debugger/debuggerplugin.cpp | 2 ++ src/moduletreemodel.cpp | 3 ++- src/typeselector.cpp | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/debugger/debuggerplugin.cpp b/src/debugger/debuggerplugin.cpp index 2265e86..467527d 100644 --- a/src/debugger/debuggerplugin.cpp +++ b/src/debugger/debuggerplugin.cpp @@ -8,6 +8,8 @@ #include #include #include +#include +#include #include #include diff --git a/src/moduletreemodel.cpp b/src/moduletreemodel.cpp index 07c18d8..7f796a5 100644 --- a/src/moduletreemodel.cpp +++ b/src/moduletreemodel.cpp @@ -35,7 +35,8 @@ std::unique_ptr ModuleTreeModel::createFromContext(chi::Context srcTree->name = QStringLiteral("src"); // create the tree - for (const fs::path& mod : modules) { + for (const auto& modStr : modules) { + auto mod = fs::path(modStr); WorkspaceTree* parent = srcTree.get(); // for each component of mod diff --git a/src/typeselector.cpp b/src/typeselector.cpp index 6d61cd1..dea879b 100644 --- a/src/typeselector.cpp +++ b/src/typeselector.cpp @@ -49,8 +49,8 @@ TypeSelector::TypeSelector(chi::ChiModule& module, QWidget* parent) completer->setItems(possibleTypes); setValidator(new StringListValidator(std::move(possibleTypes))); - connect(this, static_cast(&KComboBox::returnPressed), this, - [this]() { typeSelected(currentType()); }); + connect(this, static_cast(&KComboBox::returnPressed), this, + [this](const QString&){ typeSelected(currentType()); }); } void TypeSelector::setCurrentType(const chi::DataType& ty) {