NO-OP: replace save_state("") with save_state()

This commit is contained in:
Robin Gareus 2020-05-19 17:13:39 +02:00
parent 8194a83c30
commit 749291245c
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
4 changed files with 11 additions and 7 deletions

View File

@ -563,7 +563,7 @@ public:
* @param only_used_assets skip Sources that are not used, mainly useful with \p for_archive * @param only_used_assets skip Sources that are not used, mainly useful with \p for_archive
* @return zero on success * @return zero on success
*/ */
int save_state (std::string snapshot_name, int save_state (std::string snapshot_name = "",
bool pending = false, bool pending = false,
bool switch_to_snapshot = false, bool switch_to_snapshot = false,
bool template_only = false, bool template_only = false,

View File

@ -3119,7 +3119,7 @@ Session::add_routes (RouteList& new_routes, bool input_auto_connect, bool output
set_dirty(); set_dirty();
if (save) { if (save) {
save_state (_current_snapshot_name); save_state ();
} }
update_route_record_state (); update_route_record_state ();
@ -4375,7 +4375,11 @@ Session::remove_last_capture ()
destroy_sources (srcs); destroy_sources (srcs);
save_state (_current_snapshot_name); /* save state so we don't end up with a session file
* referring to non-existent sources.
*/
save_state ();
return 0; return 0;
} }
@ -4472,7 +4476,7 @@ Session::remove_source (boost::weak_ptr<Source> src)
* referring to non-existent sources. * referring to non-existent sources.
*/ */
save_state (_current_snapshot_name); save_state ();
} }
} }

View File

@ -3690,7 +3690,7 @@ Session::cleanup_sources (CleanupReport& rep)
* referring to non-existent sources. * referring to non-existent sources.
*/ */
save_state (""); save_state ();
ret = 0; ret = 0;
out: out:
@ -4764,7 +4764,7 @@ Session::bring_all_sources_into_session (boost::function<void(uint32_t,uint32_t,
} }
} }
save_state ("", false, false); save_state ();
return ret; return ret;
} }

View File

@ -444,7 +444,7 @@ Track::set_name (const string& str)
/* save state so that the statefile fully reflects any filename changes */ /* save state so that the statefile fully reflects any filename changes */
if ((ret = Route::set_name (str)) == 0) { if ((ret = Route::set_name (str)) == 0) {
_session.save_state (""); _session.save_state ();
} }
return ret; return ret;