summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-12-30 15:48:50 +0000
committerDavid Robillard <d@drobilla.net>2009-12-30 15:48:50 +0000
commit715d577a38d04a98405a015fd18d49c0fed40c21 (patch)
tree02102070145066128a6ff4181256da59c63aacf7 /src/engine
parent87be66d677b1947ef1b5f866c44b0beb1263ac17 (diff)
downloadingen-715d577a38d04a98405a015fd18d49c0fed40c21.tar.gz
ingen-715d577a38d04a98405a015fd18d49c0fed40c21.tar.bz2
ingen-715d577a38d04a98405a015fd18d49c0fed40c21.zip
Fix renaming (fix ticket #458).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2324 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/GraphObjectImpl.cpp2
-rw-r--r--src/engine/QueuedEngineInterface.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/GraphObjectImpl.cpp b/src/engine/GraphObjectImpl.cpp
index 40cdc792..50b0e58b 100644
--- a/src/engine/GraphObjectImpl.cpp
+++ b/src/engine/GraphObjectImpl.cpp
@@ -32,7 +32,7 @@ GraphObjectImpl::GraphObjectImpl(GraphObjectImpl* parent, const std::string& nam
: ResourceImpl((parent ? parent->path().base() : Raul::Path::root_uri) + name)
, _parent(parent)
, _name(name)
- , _meta(std::string("meta:#") + path().chop_start("/"))
+ , _meta(ResourceImpl::meta_uri(uri()))
, _polyphonic(polyphonic)
{
assert(parent == NULL || _name.length() > 0);
diff --git a/src/engine/QueuedEngineInterface.cpp b/src/engine/QueuedEngineInterface.cpp
index 09e711cc..421342e5 100644
--- a/src/engine/QueuedEngineInterface.cpp
+++ b/src/engine/QueuedEngineInterface.cpp
@@ -155,14 +155,14 @@ void
QueuedEngineInterface::put(const URI& uri,
const Resource::Properties& properties)
{
- bool meta = uri.substr(0, 6) == "meta:#";
+ bool meta = ResourceImpl::is_meta_uri(uri);
URI subject(meta ? (string("path:/") + uri.substr(6)) : uri.str());
- /*cerr << "ENGINE PUT " << subject << " {" << endl;
+ cerr << "ENGINE PUT " << subject << " {" << endl;
typedef Resource::Properties::const_iterator iterator;
for (iterator i = properties.begin(); i != properties.end(); ++i)
cerr << "\t" << i->first << " = " << i->second << " :: " << i->second.type() << endl;
- cerr << "}" << endl;*/
+ cerr << "}" << endl;
push_queued(new Events::SetMetadata(_engine, _responder, now(), this, true, meta, subject, properties));
}