rework Stateful::set_state() patch to avoid default version argument

git-svn-id: svn://localhost/ardour2/branches/3.0@5787 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2009-10-15 18:56:11 +00:00
parent 79f91c7a20
commit 8713667ec1
120 changed files with 270 additions and 236 deletions

View file

@ -75,7 +75,7 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist)
, _last_ev_time_frames(0)
, _smf_last_read_end (0)
{
if (set_state(node)) {
if (set_state(node, Stateful::loading_state_version)) {
throw failed_constructor ();
}
@ -331,15 +331,15 @@ SMFSource::get_state ()
int
SMFSource::set_state (const XMLNode& node, int version)
{
if (Source::set_state (node)) {
if (Source::set_state (node, version)) {
return -1;
}
if (MidiSource::set_state (node)) {
if (MidiSource::set_state (node, version)) {
return -1;
}
if (FileSource::set_state (node)) {
if (FileSource::set_state (node, version)) {
return -1;
}