From 80fee5c311fdbdeda573ec81f59158a5fc87d0a1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Aug 2012 04:23:23 +0000 Subject: Update for latest Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4687 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/InternalPlugin.cpp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'src/server/InternalPlugin.cpp') diff --git a/src/server/InternalPlugin.cpp b/src/server/InternalPlugin.cpp index 0f1d380b..db43558c 100644 --- a/src/server/InternalPlugin.cpp +++ b/src/server/InternalPlugin.cpp @@ -32,9 +32,9 @@ namespace Server { using namespace Internals; -InternalPlugin::InternalPlugin(URIs& uris, - const std::string& uri, - const std::string& symbol) +InternalPlugin::InternalPlugin(URIs& uris, + const Raul::URI& uri, + const Raul::Symbol& symbol) : PluginImpl(uris, Plugin::Internal, uri) , _symbol(symbol) { @@ -52,15 +52,13 @@ InternalPlugin::instantiate(BufferFactory& bufs, const SampleCount srate = engine.driver()->sample_rate(); - const string uri_str = uri().str(); - - if (uri_str == NS_INTERNALS "Controller") { + if (uri() == NS_INTERNALS "Controller") { return new ControllerNode(this, bufs, symbol, polyphonic, parent, srate); - } else if (uri_str == NS_INTERNALS "Delay") { + } else if (uri() == NS_INTERNALS "Delay") { return new DelayNode(this, bufs, symbol, polyphonic, parent, srate); - } else if (uri_str == NS_INTERNALS "Note") { + } else if (uri() == NS_INTERNALS "Note") { return new NoteNode(this, bufs, symbol, polyphonic, parent, srate); - } else if (uri_str == NS_INTERNALS "Trigger") { + } else if (uri() == NS_INTERNALS "Trigger") { return new TriggerNode(this, bufs, symbol, polyphonic, parent, srate); } else { return NULL; -- cgit v1.2.1