From f8eee81f6f94d018ab7c1133bf2b78926316edf8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 18 Aug 2022 01:41:57 -0400 Subject: Fix overly long line comments --- src/gui/BreadCrumbs.cpp | 8 ++++---- src/gui/RDFS.cpp | 2 +- src/server/JackDriver.cpp | 2 +- src/server/events/Delta.cpp | 2 +- tests/ingen_test.cpp | 4 ++-- 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& 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() && !_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)); -- cgit v1.2.1