summaryrefslogtreecommitdiff
path: root/libs/ardour/source.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-08-14 23:29:01 +0000
committerDavid Robillard <d@drobilla.net>2006-08-14 23:29:01 +0000
commit5952c48a848926edb02b5d630e36cc461c893964 (patch)
tree2e1126d7cfb015f37222eff2523766c759608241 /libs/ardour/source.cc
parentd752986314eb37151983393c1d62efefe503e47c (diff)
More solid "fake" recording and serialization
git-svn-id: svn://localhost/ardour2/branches/midi@825 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/source.cc')
-rw-r--r--libs/ardour/source.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/ardour/source.cc b/libs/ardour/source.cc
index 1506983e18..bf07ede70b 100644
--- a/libs/ardour/source.cc
+++ b/libs/ardour/source.cc
@@ -48,6 +48,8 @@ sigc::signal<void,Source*> Source::SourceCreated;
Source::Source (string name, DataType type)
: _type(type)
{
+ assert(_name.find("/") == string::npos);
+
_name = name;
_use_cnt = 0;
_timestamp = 0;
@@ -62,6 +64,7 @@ Source::Source (const XMLNode& node)
if (set_state (node) || _type == DataType::NIL) {
throw failed_constructor();
}
+ assert(_name.find("/") == string::npos);
}
Source::~Source ()
@@ -111,6 +114,7 @@ Source::set_state (const XMLNode& node)
if ((prop = node.property ("timestamp")) != 0) {
sscanf (prop->value().c_str(), "%ld", &_timestamp);
}
+ assert(_name.find("/") == string::npos);
return 0;
}