summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 02:04:21 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 02:04:21 -0400
commit9994cdebb60ecffcf81ced46ccfd12968ea3b2da (patch)
treeeddf1322d05e407fa3b683fca25a6a150427ddba /src/gui
parentc8152e8724c8e78fc53651f000a4e63aca945722 (diff)
downloadingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.tar.gz
ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.tar.bz2
ingen-9994cdebb60ecffcf81ced46ccfd12968ea3b2da.zip
Use consistent spacing for line comments
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/GraphCanvas.cpp2
-rw-r--r--src/gui/NodeModule.cpp2
-rw-r--r--src/gui/Port.cpp4
3 files changed, 4 insertions, 4 deletions
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<const ArcModel>& arc)
if (arc->head()->is_a(_app.uris().lv2_AudioPort)) {
auto* const h = dynamic_cast<gui::Port*>(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<float>() == static_cast<float>(value)) {
- return; // No change
+ return; // No change
}
const Atom atom = _app.forge().make(float(value));