NO-OP: whitespace

This commit is contained in:
Robin Gareus 2017-04-20 23:47:39 +02:00
parent e1c4fe8edc
commit f913d5b9f6

View file

@ -629,8 +629,8 @@ Session::create (const string& session_template, BusProfile* bus_profile)
if (Profile->get_trx()) { if (Profile->get_trx()) {
/* set initial start + end point : ARDOUR::Session::session_end_shift long. /* set initial start + end point : ARDOUR::Session::session_end_shift long.
Remember that this is a brand new session. Sessions * Remember that this is a brand new session. Sessions
loaded from saved state will get this range from the saved state. * loaded from saved state will get this range from the saved state.
*/ */
set_session_range_location (0, 0); set_session_range_location (0, 0);
@ -799,8 +799,7 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
_save_queued = false; _save_queued = false;
if (!_engine.connected ()) { if (!_engine.connected ()) {
error << string_compose (_("the %1 audio engine is not connected and state saving would lose all I/O connections. Session not saved"), error << string_compose (_("the %1 audio engine is not connected and state saving would lose all I/O connections. Session not saved"), PROGRAM_NAME)
PROGRAM_NAME)
<< endmsg; << endmsg;
return 1; return 1;
} }
@ -1275,8 +1274,6 @@ Session::state (bool full_state)
} }
} }
if (full_state) { if (full_state) {
if (_locations) { if (_locations) {
@ -1455,8 +1452,8 @@ Session::set_state (const XMLNode& node, int version)
ID::init_counter (counter); ID::init_counter (counter);
} else { } else {
/* old sessions used a timebased counter, so fake /* old sessions used a timebased counter, so fake
the startup ID counter based on a standard * the startup ID counter based on a standard
timestamp. * timestamp.
*/ */
time_t now; time_t now;
time (&now); time (&now);
@ -1564,8 +1561,8 @@ Session::set_state (const XMLNode& node, int version)
//goto out; //goto out;
} else { } else {
/* We can't load Bundles yet as they need to be able /* We can't load Bundles yet as they need to be able
to convert from port names to Port objects, which can't happen until * to convert from port names to Port objects, which can't happen until
later */ * later */
_bundle_xml_node = new XMLNode (*child); _bundle_xml_node = new XMLNode (*child);
} }
} }
@ -2926,9 +2923,9 @@ accept_all_midi_files (const string& path, void* /*arg*/)
return false; return false;
} }
return ((path.length() > 4 && path.find (".mid") != (path.length() - 4)) || return ( (path.length() > 4 && path.find (".mid") != (path.length() - 4))
(path.length() > 4 && path.find (".smf") != (path.length() - 4)) || || (path.length() > 4 && path.find (".smf") != (path.length() - 4))
(path.length() > 5 && path.find (".midi") != (path.length() - 5))); || (path.length() > 5 && path.find (".midi") != (path.length() - 5)));
} }
static bool static bool
@ -3206,8 +3203,7 @@ Session::cleanup_sources (CleanupReport& rep)
goto out; goto out;
} }
/* sync the "all regions" property of each playlist with its current state /* sync the "all regions" property of each playlist with its current state */
*/
playlists->sync_all_regions_with_regions (); playlists->sync_all_regions_with_regions ();
@ -3224,7 +3220,7 @@ Session::cleanup_sources (CleanupReport& rep)
++tmp; ++tmp;
/* do not bother with files that are zero size, otherwise we remove the current "nascent" /* do not bother with files that are zero size, otherwise we remove the current "nascent"
capture files. * capture files.
*/ */
if (!i->second->used() && (i->second->length(i->second->timeline_position()) > 0)) { if (!i->second->used() && (i->second->length(i->second->timeline_position()) > 0)) {
@ -3307,11 +3303,9 @@ Session::cleanup_sources (CleanupReport& rep)
cerr << "Source from source list found in used_by_this_snapshot (" << fs->path() << ")\n"; cerr << "Source from source list found in used_by_this_snapshot (" << fs->path() << ")\n";
} else { } else {
cerr << "Source from source list NOT found in used_by_this_snapshot (" << fs->path() << ")\n"; cerr << "Source from source list NOT found in used_by_this_snapshot (" << fs->path() << ")\n";
/* this source is NOT in use by this snapshot /* this source is NOT in use by this snapshot */
*/
/* remove all related regions from RegionFactory master list /* remove all related regions from RegionFactory master list */
*/
RegionFactory::remove_regions_using_source (i->second); RegionFactory::remove_regions_using_source (i->second);
@ -3331,7 +3325,7 @@ Session::cleanup_sources (CleanupReport& rep)
} }
/* now check each candidate source to see if it exists in the list of /* now check each candidate source to see if it exists in the list of
sources_used_by_all_snapshots. If it doesn't, put it into "unused". * sources_used_by_all_snapshots. If it doesn't, put it into "unused".
*/ */
cerr << "Candidates: " << candidates.size() << endl; cerr << "Candidates: " << candidates.size() << endl;
@ -3376,8 +3370,8 @@ Session::cleanup_sources (CleanupReport& rep)
string newpath; string newpath;
/* don't move the file across filesystems, just /* don't move the file across filesystems, just
stick it in the `dead_dir_name' directory * stick it in the `dead_dir_name' directory
on whichever filesystem it was already on. * on whichever filesystem it was already on.
*/ */
if ((*x).find ("/sounds/") != string::npos) { if ((*x).find ("/sounds/") != string::npos) {
@ -3438,13 +3432,12 @@ Session::cleanup_sources (CleanupReport& rep)
continue; continue;
} }
/* see if there an easy to find peakfile for this file, and remove it. /* see if there an easy to find peakfile for this file, and remove it. */
*/
string base = Glib::path_get_basename (*x); string base = Glib::path_get_basename (*x);
base += "%A"; /* this is what we add for the channel suffix of all native files, base += "%A"; /* this is what we add for the channel suffix of all native files,
or for the first channel of embedded files. it will miss * or for the first channel of embedded files. it will miss
some peakfiles for other channels * some peakfiles for other channels
*/ */
string peakpath = construct_peak_filepath (base); string peakpath = construct_peak_filepath (base);
@ -3467,7 +3460,7 @@ Session::cleanup_sources (CleanupReport& rep)
_history.clear (); _history.clear ();
/* save state so we don't end up a session file /* save state so we don't end up a session file
referring to non-existent sources. * referring to non-existent sources.
*/ */
save_state (""); save_state ("");
@ -4188,14 +4181,13 @@ boost::shared_ptr<Controllable>
Session::solo_cut_control() const Session::solo_cut_control() const
{ {
/* the solo cut control is a bit of an anomaly, at least as of Febrary 2011. There are no other /* the solo cut control is a bit of an anomaly, at least as of Febrary 2011. There are no other
controls in Ardour that currently get presented to the user in the GUI that require * controls in Ardour that currently get presented to the user in the GUI that require
access as a Controllable and are also NOT owned by some SessionObject (e.g. Route, or MonitorProcessor). * access as a Controllable and are also NOT owned by some SessionObject (e.g. Route, or MonitorProcessor).
*
its actually an RCConfiguration parameter, so we use a ProxyControllable to wrap * its actually an RCConfiguration parameter, so we use a ProxyControllable to wrap
it up as a Controllable. Changes to the Controllable will just map back to the RCConfiguration * it up as a Controllable. Changes to the Controllable will just map back to the RCConfiguration
parameter. * parameter.
*/ */
return _solo_cut_control; return _solo_cut_control;
} }