NO-OP: replace save_state("")
with save_state()
This commit is contained in:
parent
8194a83c30
commit
749291245c
@ -563,7 +563,7 @@ public:
|
||||
* @param only_used_assets skip Sources that are not used, mainly useful with \p for_archive
|
||||
* @return zero on success
|
||||
*/
|
||||
int save_state (std::string snapshot_name,
|
||||
int save_state (std::string snapshot_name = "",
|
||||
bool pending = false,
|
||||
bool switch_to_snapshot = false,
|
||||
bool template_only = false,
|
||||
|
@ -3119,7 +3119,7 @@ Session::add_routes (RouteList& new_routes, bool input_auto_connect, bool output
|
||||
set_dirty();
|
||||
|
||||
if (save) {
|
||||
save_state (_current_snapshot_name);
|
||||
save_state ();
|
||||
}
|
||||
|
||||
update_route_record_state ();
|
||||
@ -4375,7 +4375,11 @@ Session::remove_last_capture ()
|
||||
|
||||
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;
|
||||
}
|
||||
@ -4472,7 +4476,7 @@ Session::remove_source (boost::weak_ptr<Source> src)
|
||||
* referring to non-existent sources.
|
||||
*/
|
||||
|
||||
save_state (_current_snapshot_name);
|
||||
save_state ();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -3690,7 +3690,7 @@ Session::cleanup_sources (CleanupReport& rep)
|
||||
* referring to non-existent sources.
|
||||
*/
|
||||
|
||||
save_state ("");
|
||||
save_state ();
|
||||
ret = 0;
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -444,7 +444,7 @@ Track::set_name (const string& str)
|
||||
/* save state so that the statefile fully reflects any filename changes */
|
||||
|
||||
if ((ret = Route::set_name (str)) == 0) {
|
||||
_session.save_state ("");
|
||||
_session.save_state ();
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user