Skip to content

Commit

Permalink
fix clang compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
russelltg committed Apr 11, 2021
1 parent e4dedef commit c95d42a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/debugger/debuggerplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <QDebug>
#include <QThread>
#include <QToolTip>
#include <chi/NodeInstance.hpp>
#include <chi/NodeType.hpp>
#include <chi/Support/Result.hpp>
#include <thread>

Expand Down
3 changes: 2 additions & 1 deletion src/moduletreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ std::unique_ptr<ModuleTreeModel> 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
Expand Down
4 changes: 2 additions & 2 deletions src/typeselector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ TypeSelector::TypeSelector(chi::ChiModule& module, QWidget* parent)
completer->setItems(possibleTypes);
setValidator(new StringListValidator(std::move(possibleTypes)));

connect(this, static_cast<void (KComboBox::*)()>(&KComboBox::returnPressed), this,
[this]() { typeSelected(currentType()); });
connect(this, static_cast<void (KComboBox::*)(const QString&)>(&KComboBox::returnPressed), this,
[this](const QString&){ typeSelected(currentType()); });
}

void TypeSelector::setCurrentType(const chi::DataType& ty) {
Expand Down

0 comments on commit c95d42a

Please sign in to comment.