summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-08-18 01:41:57 -0400
committerDavid Robillard <d@drobilla.net>2022-08-18 01:41:57 -0400
commitf8eee81f6f94d018ab7c1133bf2b78926316edf8 (patch)
tree6b07e0da7df5e6df1bc87bff7b5e96d3a067452d
parent4564d719745848386a0662a44a47a8400c799560 (diff)
downloadingen-f8eee81f6f94d018ab7c1133bf2b78926316edf8.tar.gz
ingen-f8eee81f6f94d018ab7c1133bf2b78926316edf8.tar.bz2
ingen-f8eee81f6f94d018ab7c1133bf2b78926316edf8.zip
Fix overly long line comments
-rw-r--r--src/gui/BreadCrumbs.cpp8
-rw-r--r--src/gui/RDFS.cpp2
-rw-r--r--src/server/JackDriver.cpp2
-rw-r--r--src/server/events/Delta.cpp2
-rw-r--r--tests/ingen_test.cpp4
5 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/BreadCrumbs.cpp b/src/gui/BreadCrumbs.cpp
index 041c3f51..46a0757a 100644
--- a/src/gui/BreadCrumbs.cpp
+++ b/src/gui/BreadCrumbs.cpp
@@ -77,7 +77,7 @@ BreadCrumbs::build(const raul::Path& path,
b->set_view(view);
}
- // views are expensive, having two around for the same graph is a bug
+ // Views are expensive, having two around is a bug
assert(b->view() == view);
} else {
@@ -89,7 +89,7 @@ BreadCrumbs::build(const raul::Path& path,
_enable_signal = old_enable_signal;
} else if (!_breadcrumbs.empty() && path.is_child_of(_full_path)) {
- // Moving to a child of the full path, just append crumbs (preserve view cache)
+ // Moving to a child of the full path, append crumbs (preserve cache)
string suffix = path.substr(_full_path.length());
while (suffix.length() > 0) {
@@ -115,8 +115,8 @@ BreadCrumbs::build(const raul::Path& path,
_breadcrumbs.back()->set_active(true);
} else {
- // Rebuild from scratch
- // Getting here is bad unless absolutely necessary, since the GraphView cache is lost
+ /* Rebuild from scratch. Getting here is bad unless absolutely
+ necessary, since the GraphView cache is lost. */
_full_path = path;
_active_path = path;
diff --git a/src/gui/RDFS.cpp b/src/gui/RDFS.cpp
index 23a9e768..3a277950 100644
--- a/src/gui/RDFS.cpp
+++ b/src/gui/RDFS.cpp
@@ -128,7 +128,7 @@ types(World& world, const std::shared_ptr<const client::ObjectModel>& model)
const URI type(world.forge().str(t->second, false));
types.insert(type);
if (world.uris().ingen_Graph == type) {
- // Add lv2:Plugin as a type for graphs so plugin properties show up
+ // Add lv2:Plugin as a type so plugin properties show up
types.insert(world.uris().lv2_Plugin);
}
} else {
diff --git a/src/server/JackDriver.cpp b/src/server/JackDriver.cpp
index b60fb5fa..32029c6e 100644
--- a/src/server/JackDriver.cpp
+++ b/src/server/JackDriver.cpp
@@ -90,7 +90,7 @@ JackDriver::attach(const std::string& server_name,
}
}
- // Either server name not specified, or supplied server name does not exist
+ // Server name not specified, or that server doesn't exist
// Connect to default server
if (!_client) {
if ((_client = jack_client_open(client_name.c_str(), JackNullOption, nullptr))) {
diff --git a/src/server/events/Delta.cpp b/src/server/events/Delta.cpp
index 88826a23..67319423 100644
--- a/src/server/events/Delta.cpp
+++ b/src/server/events/Delta.cpp
@@ -395,7 +395,7 @@ Delta::pre_process(PreProcessContext& ctx)
if (key == uris.ingen_enabled) {
if (value.type() == uris.forge.Bool) {
op = SpecialType::ENABLE;
- // FIXME: defer this until all other metadata has been processed
+ // FIXME: defer until all other data has been processed
if (value.get<int32_t>() && !_graph->enabled()) {
if (!(_compiled_graph = compile(*_engine.maid(), *_graph))) {
_status = Status::COMPILATION_FAILED;
diff --git a/tests/ingen_test.cpp b/tests/ingen_test.cpp
index f0148b12..496e8828 100644
--- a/tests/ingen_test.cpp
+++ b/tests/ingen_test.cpp
@@ -203,7 +203,7 @@ run(int argc, char** argv)
const FilePath out_path = filesystem::current_path() / out_name;
world->serialiser()->write_bundle(r->second, URI(out_path));
- // Undo every event (should result in a graph identical to the original)
+ // Undo every event (makes the graph identical to the original)
for (int i = 0; i < n_events; ++i) {
world->interface()->undo();
world->engine()->flush_events(std::chrono::milliseconds(20));
@@ -215,7 +215,7 @@ run(int argc, char** argv)
const FilePath undo_path = filesystem::current_path() / undo_name;
world->serialiser()->write_bundle(r->second, URI(undo_path));
- // Redo every event (should result in a graph identical to the pre-undo output)
+ // Redo every event (makes the graph identical to the pre-undo output)
for (int i = 0; i < n_events; ++i) {
world->interface()->redo();
world->engine()->flush_events(std::chrono::milliseconds(20));