diff options
author | David Robillard <d@drobilla.net> | 2013-01-11 04:47:21 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-11 04:47:21 +0000 |
commit | 10e9a3a800a35916872abf9e354be4c554338e4e (patch) | |
tree | d6be3ce7993f5d8efd525629fd321b32a6341633 /src/server/BlockFactory.cpp | |
parent | 684eaf6b58e41f6758b160b882a6313faf0cff18 (diff) | |
download | ingen-10e9a3a800a35916872abf9e354be4c554338e4e.tar.gz ingen-10e9a3a800a35916872abf9e354be4c554338e4e.tar.bz2 ingen-10e9a3a800a35916872abf9e354be4c554338e4e.zip |
Use type safe enumerations.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4918 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/BlockFactory.cpp')
-rw-r--r-- | src/server/BlockFactory.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<LilvNode> > 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<LilvNode>( lilv_new_uri(_world->lilv_world(), uri.c_str()), lilv_node_free)); |