X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fnamed_selection.cc;h=0c6b3699b6830f1bd67643735a3c21b75b091968;hb=6a847f553c9e274c8b1a464590e41ae78018af45;hp=fbb4b748df5176ed71e7d9c93d6c149e8ca5dcf2;hpb=99904735e066804358f1d0bd138a84f1e9ecda91;p=ardour.git diff --git a/libs/ardour/named_selection.cc b/libs/ardour/named_selection.cc index fbb4b748df..0c6b3699b6 100644 --- a/libs/ardour/named_selection.cc +++ b/libs/ardour/named_selection.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2003 Paul Davis + Copyright (C) 2003 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,16 +17,17 @@ */ -#include -#include +#include "pbd/failed_constructor.h" +#include "pbd/error.h" -#include -#include -#include -#include +#include "ardour/session.h" +#include "ardour/utils.h" +#include "ardour/playlist.h" +#include "ardour/named_selection.h" #include "i18n.h" +using namespace std; using namespace ARDOUR; using namespace PBD; @@ -34,7 +35,7 @@ sigc::signal NamedSelection::NamedSelectionCreated; typedef std::list > PlaylistList; -NamedSelection::NamedSelection (string n, PlaylistList& l) +NamedSelection::NamedSelection (string n, PlaylistList& l) : name (n) { playlists = l; @@ -64,7 +65,7 @@ NamedSelection::NamedSelection (Session& session, const XMLNode& node) } name = property->value(); - + if ((lists_node = find_named_node (node, "Playlists")) == 0) { return; } @@ -105,7 +106,7 @@ NamedSelection::~NamedSelection () } int -NamedSelection::set_state (const XMLNode& node) +NamedSelection::set_state (const XMLNode& /*node*/, int /*version*/) { return 0; } @@ -125,6 +126,6 @@ NamedSelection::get_state () plnode->add_property ("name", (*i)->name()); child->add_child_nocopy (*plnode); } - + return *root; }