diff options
author | Robin Gareus <robin@gareus.org> | 2018-02-24 13:54:15 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-02-24 13:55:20 +0100 |
commit | ceac42cc039d9043e0bcf929c6e8207d7f8fc7d4 (patch) | |
tree | 69346ff1854fb3a690e92cabfd938e6e6d65db47 /gtk2_ardour/script_selector.cc | |
parent | 75122af11897aa5bf6b5b9fb2ab5a984eb1ef8a6 (diff) |
NO-OP: whitespace
- remove trailing whitespace
- remove space after opening brackets and before closing brackets
- add space around operators
- do not use '//' for multi-line comments, do not use "//" on line-start
to comment-out code breaking indenting (-Wmisleading-indent)
- do add a single space after comment-start /*{SPACE}... or //{SPACE}...
- reserve duplicate whitespace " " for alignment, remove other duplicate
whitespace
- use established "TODO" and "XXX" (highlighted keywords)
- remove equal-sign series "====" (those indicate merge conflicts)
Diffstat (limited to 'gtk2_ardour/script_selector.cc')
-rw-r--r-- | gtk2_ardour/script_selector.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk2_ardour/script_selector.cc b/gtk2_ardour/script_selector.cc index bd2ebf9844..28488a7b99 100644 --- a/gtk2_ardour/script_selector.cc +++ b/gtk2_ardour/script_selector.cc @@ -79,7 +79,7 @@ ScriptSelector::ScriptSelector (std::string title, LuaScriptInfo::ScriptType typ setup_list (); show_all (); - + script_combo_changed(); } @@ -95,20 +95,20 @@ void ScriptSelector::setup_list () { _combocon.block(); - + vector<string> script_names; for (LuaScriptList::const_iterator s = _scripts.begin(); s != _scripts.end(); ++s) { if ((*s)->name != "Shortcut") { script_names.push_back ((*s)->name); } } - + _script_combo.clear(); _script_combo.set_row_separator_func (sigc::mem_fun (*this, &ScriptSelector::script_separator)); _script_combo.append_text ("Shortcut"); _script_combo.append_text ("separator"); - + vector<string>::const_iterator i; for (i = script_names.begin(); i != script_names.end(); ++i) { _script_combo.append_text (*i); @@ -132,7 +132,7 @@ ScriptSelector::script_combo_changed () } if (_script) { - + if (_script->name == "Shortcut") { _type.hide(); _type_label.hide(); |