From 09c1e01f6fcab5fa70d7b15289036f4be27ba496 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 3 Apr 2023 13:04:59 +0000 Subject: [PATCH] fix code-style Signed-off-by: Steffen Vogel --- lib/mapping.cpp | 1 - lib/path.cpp | 2 +- lib/super_node.cpp | 12 ++++++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/mapping.cpp b/lib/mapping.cpp index 655d517f0..f7c3793ed 100644 --- a/lib/mapping.cpp +++ b/lib/mapping.cpp @@ -313,7 +313,6 @@ std::string MappingEntry::toString(unsigned index) const return ss.str(); } - Signal::Ptr MappingEntry::toSignal(unsigned index) const { auto name = toString(index); diff --git a/lib/path.cpp b/lib/path.cpp index 28be09de3..08042fe00 100644 --- a/lib/path.cpp +++ b/lib/path.cpp @@ -87,7 +87,7 @@ void * Path::runPoll() if (ret < 0) throw SystemError("Failed to poll"); - logger->debug("returned from poll(2): ret={}", ret); + logger->debug("Returned from poll(2): ret={}", ret); for (unsigned i = 0; i < pfds.size(); i++) { auto &pfd = pfds[i]; diff --git a/lib/super_node.cpp b/lib/super_node.cpp index ec70b8287..605ac468c 100644 --- a/lib/super_node.cpp +++ b/lib/super_node.cpp @@ -269,8 +269,10 @@ void SuperNode::startNodes() void SuperNode::startPaths() { for (auto *p : paths) { - if (p->isEnabled()) - p->start(); + if (!p->isEnabled()) + continue; + + p->start(); } } @@ -291,8 +293,10 @@ void SuperNode::prepareNodes() void SuperNode::preparePaths() { for (auto *p : paths) { - if (p->isEnabled()) - p->prepare(nodes); + if (!p->isEnabled()) + continue; + + p->prepare(nodes); } }