Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits committed Jul 4, 2023
1 parent 48c3c6c commit cf76246
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/ui/dashboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ void Dashboard::doLoad(const std::string &desc) {

auto source = std::find_if(m_sources.begin(), m_sources.end(), [&](const auto &s) {
return s.name == nameStr;
});
});
if (source == m_sources.end()) {
fmt::print("Unable to find the source '{}.{}'\n", blockStr, portNum);
continue;
Expand Down
6 changes: 3 additions & 3 deletions src/ui/dashboardpage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,13 @@ void DashboardPage::drawControlsPanel(Dashboard *dashboard, const ImVec2 &pos, c

auto listSize = verticalLayout ? ImVec2(size.x, 200) : ImVec2(200, size.y - ImGui::GetFrameHeightWithSpacing());
auto ret = ImGuiUtils::filteredListBox(
"blocks", BlockType::registry().types(), [](auto &it) -> std::pair<BlockType *, std::string> {
"blocks", BlockType::registry().types(), [](auto &it) -> std::pair<BlockType *, std::string> {
if (it.second->inputs.size() != 1 || it.second->outputs.size() != 1) {
return {};
}
return std::pair{ it.second.get(), it.first };
},
listSize);
},
listSize);

{
ImGuiUtils::DisabledGuard dg(!ret.has_value());
Expand Down
2 changes: 1 addition & 1 deletion src/ui/flowgraphitem.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FlowGraphItem {
ax::NodeEditor::Config config;
std::string settings;
};
std::unordered_map<FlowGraph *, Context> m_editors;
std::unordered_map<FlowGraph *, Context> m_editors;

Block *m_editingBlock = nullptr;
std::chrono::time_point<std::chrono::system_clock> m_editPaneCloseTime;
Expand Down

0 comments on commit cf76246

Please sign in to comment.