diff options
Diffstat (limited to 'src/libs/engine')
-rw-r--r-- | src/libs/engine/LV2Plugin.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/libs/engine/LV2Plugin.cpp b/src/libs/engine/LV2Plugin.cpp index 1c74bca9..4cb7348d 100644 --- a/src/libs/engine/LV2Plugin.cpp +++ b/src/libs/engine/LV2Plugin.cpp @@ -82,14 +82,10 @@ LV2Plugin::instantiate() Port* port = NULL; for (size_t j=0; j < m_num_ports; ++j) { - // LV2 shortnames are guaranteed to be unique + // LV2 shortnames are guaranteed to be unique, valid C identifiers port_name = (char*)slv2_port_get_symbol(m_lv2_plugin, j); - string::size_type slash_index; - - // Replace all slashes with "-" (so they don't screw up paths) - while ((slash_index = port_name.find("/")) != string::npos) - port_name[slash_index] = '-'; + assert(port_name.find("/") == string::npos); port_path = path() + "/" + port_name; |