From 63ea7b6516dbd7554d1eff6c98de50cf61fc9a72 Mon Sep 17 00:00:00 2001 From: Thomas Brand Date: Sat, 1 Jul 2017 18:42:24 +0200 Subject: NO-OP whitespace (updated GH PR #357) --- gtk2_ardour/plugin_selector.cc | 100 ++++++++++++++++++++--------------------- 1 file changed, 50 insertions(+), 50 deletions(-) (limited to 'gtk2_ardour/plugin_selector.cc') diff --git a/gtk2_ardour/plugin_selector.cc b/gtk2_ardour/plugin_selector.cc index 7b8e2b4ace..c67af473a0 100644 --- a/gtk2_ardour/plugin_selector.cc +++ b/gtk2_ardour/plugin_selector.cc @@ -620,14 +620,14 @@ PluginSelector::run () PluginPtr p = load_plugin (pp); if (p) { plugins.push_back (p); - } else { - MessageDialog msg (string_compose (_("The plugin \"%1\" could not be loaded\n\nSee the Log window for more details (maybe)"), pp->name)); - msg.run (); - } + } else { + MessageDialog msg (string_compose (_("The plugin \"%1\" could not be loaded\n\nSee the Log window for more details (maybe)"), pp->name)); + msg.run (); + } } if (interested_object && !plugins.empty()) { finish = !interested_object->use_plugins (plugins); - } + } break; @@ -689,57 +689,57 @@ PluginSelector::on_show () } struct PluginMenuCompareByCreator { - bool operator() (PluginInfoPtr a, PluginInfoPtr b) const { - int cmp; - - cmp = cmp_nocase_utf8 (a->creator, b->creator); - - if (cmp < 0) { - return true; - } else if (cmp == 0) { - /* same creator ... compare names */ - if (cmp_nocase_utf8 (a->name, b->name) < 0) { - return true; - } - } - return false; - } + bool operator() (PluginInfoPtr a, PluginInfoPtr b) const { + int cmp; + + cmp = cmp_nocase_utf8 (a->creator, b->creator); + + if (cmp < 0) { + return true; + } else if (cmp == 0) { + /* same creator ... compare names */ + if (cmp_nocase_utf8 (a->name, b->name) < 0) { + return true; + } + } + return false; + } }; struct PluginMenuCompareByName { - bool operator() (PluginInfoPtr a, PluginInfoPtr b) const { - int cmp; - - cmp = cmp_nocase_utf8 (a->name, b->name); - - if (cmp < 0) { - return true; - } else if (cmp == 0) { - /* same name ... compare type */ - if (a->type < b->type) { - return true; - } - } - return false; - } + bool operator() (PluginInfoPtr a, PluginInfoPtr b) const { + int cmp; + + cmp = cmp_nocase_utf8 (a->name, b->name); + + if (cmp < 0) { + return true; + } else if (cmp == 0) { + /* same name ... compare type */ + if (a->type < b->type) { + return true; + } + } + return false; + } }; struct PluginMenuCompareByCategory { - bool operator() (PluginInfoPtr a, PluginInfoPtr b) const { - int cmp; - - cmp = cmp_nocase_utf8 (a->category, b->category); - - if (cmp < 0) { - return true; - } else if (cmp == 0) { - /* same category ... compare names */ - if (cmp_nocase_utf8 (a->name, b->name) < 0) { - return true; - } - } - return false; - } + bool operator() (PluginInfoPtr a, PluginInfoPtr b) const { + int cmp; + + cmp = cmp_nocase_utf8 (a->category, b->category); + + if (cmp < 0) { + return true; + } else if (cmp == 0) { + /* same category ... compare names */ + if (cmp_nocase_utf8 (a->name, b->name) < 0) { + return true; + } + } + return false; + } }; /** @return Plugin menu. The caller should not delete it */ -- cgit v1.2.3