From 9994cdebb60ecffcf81ced46ccfd12968ea3b2da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 02:04:21 -0400 Subject: Use consistent spacing for line comments --- src/gui/GraphCanvas.cpp | 2 +- src/gui/NodeModule.cpp | 2 +- src/gui/Port.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui') diff --git a/src/gui/GraphCanvas.cpp b/src/gui/GraphCanvas.cpp index a14d9971..3acd510d 100644 --- a/src/gui/GraphCanvas.cpp +++ b/src/gui/GraphCanvas.cpp @@ -479,7 +479,7 @@ GraphCanvas::disconnection(const std::shared_ptr& arc) if (arc->head()->is_a(_app.uris().lv2_AudioPort)) { auto* const h = dynamic_cast(head); if (h) { - h->activity(_app.forge().make(0.0f)); // Reset peaks + h->activity(_app.forge().make(0.0f)); // Reset peaks } } } else { diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 6905318a..1b090c4f 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -127,7 +127,7 @@ bool NodeModule::idle_init() { if (_block->ports().empty()) { - return true; // Need to embed GUI, but ports haven't shown up yet + return true; // Need to embed GUI, but ports haven't shown up yet } // Ports have arrived, embed GUI and deregister this callback diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index e4e02aa6..84fbd165 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -223,11 +223,11 @@ Port::on_value_changed(double value) const URIs& uris = _app.uris(); const Atom& current_value = model()->value(); if (current_value.type() != uris.forge.Float) { - return; // Non-float, unsupported + return; // Non-float, unsupported } if (current_value.get() == static_cast(value)) { - return; // No change + return; // No change } const Atom atom = _app.forge().make(float(value)); -- cgit v1.2.1