summaryrefslogtreecommitdiff
path: root/libs/ardour/export_format_specification.cc
diff options
context:
space:
mode:
authorSakari Bergen <sakari.bergen@beatwaves.net>2008-09-19 16:56:01 +0000
committerSakari Bergen <sakari.bergen@beatwaves.net>2008-09-19 16:56:01 +0000
commit68f04adec110a991e2b2c1657e67a7dc791decc1 (patch)
treee5a47603b50d0e17e69ffcfd904424ed06180ddf /libs/ardour/export_format_specification.cc
parentfa4bca989b18259456ec713b8f02e061ec8bc8e2 (diff)
* Added PBD::UUID
* uuid headers are needed for building! * Export presets and format profiles use UUID * Moved ExportPreset class away from ExportProfileManager * Workaround for Gtk::NoteBook bug in ExportMainDialog git-svn-id: svn://localhost/ardour2/branches/3.0@3762 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/export_format_specification.cc')
-rw-r--r--libs/ardour/export_format_specification.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/libs/ardour/export_format_specification.cc b/libs/ardour/export_format_specification.cc
index 61d9bef523..c317b38b17 100644
--- a/libs/ardour/export_format_specification.cc
+++ b/libs/ardour/export_format_specification.cc
@@ -39,11 +39,6 @@ namespace ARDOUR
using namespace PBD;
using std::string;
-/* The id counter is initialized to 1000 so that user created profiles have a id > 1000
- * while ones shipped with ardour have one < 1000
- */
-uint32_t ExportFormatSpecification::_counter = 1000;
-
ExportFormatSpecification::Time &
ExportFormatSpecification::Time::operator= (AnyTime const & other)
{
@@ -189,8 +184,6 @@ ExportFormatSpecification::ExportFormatSpecification (Session & s) :
sample_formats.insert (SF_None);
sample_rates.insert (SR_None);
qualities.insert (Q_None);
-
- _id = ++_counter;
}
ExportFormatSpecification::ExportFormatSpecification (Session & s, XMLNode const & state) :
@@ -210,7 +203,6 @@ ExportFormatSpecification::ExportFormatSpecification (ExportFormatSpecification
_silence_end (other.session)
{
set_name (other.name() + " (copy)");
- _id = ++_counter;
_format_name = other._format_name;
has_sample_format = other.has_sample_format;
@@ -250,7 +242,7 @@ ExportFormatSpecification::get_state ()
XMLNode * root = new XMLNode ("ExportFormatSpecification");
root->add_property ("name", _name);
- root->add_property ("id", to_string (_id, std::dec));
+ root->add_property ("id", _id.to_s());
node = root->add_child ("Encoding");
node->add_property ("id", enum_2_string (format_id()));
@@ -313,8 +305,7 @@ ExportFormatSpecification::set_state (const XMLNode & root)
}
if ((prop = root.property ("id"))) {
- std::istringstream iss (prop->value());
- iss >> _id;
+ _id = prop->value();
}
/* Encoding and SRC */