From 10e9a3a800a35916872abf9e354be4c554338e4e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Jan 2013 04:47:21 +0000 Subject: Use type safe enumerations. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4918 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/BlockFactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/BlockFactory.cpp') diff --git a/src/server/BlockFactory.cpp b/src/server/BlockFactory.cpp index 101c97e8..9f5b93d8 100644 --- a/src/server/BlockFactory.cpp +++ b/src/server/BlockFactory.cpp @@ -122,8 +122,8 @@ BlockFactory::load_lv2_plugins() // Build an array of port type nodes for checking compatibility typedef std::vector< SharedPtr > Types; Types types; - for (unsigned t = PortType::AUDIO; t <= PortType::ATOM; ++t) { - const Raul::URI& uri(PortType((PortType::Symbol)t).uri()); + for (unsigned t = PortType::ID::AUDIO; t <= PortType::ID::ATOM; ++t) { + const Raul::URI& uri(PortType((PortType::ID)t).uri()); types.push_back(SharedPtr( lilv_new_uri(_world->lilv_world(), uri.c_str()), lilv_node_free)); -- cgit v1.2.1