diff options
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/LV2Node.cpp | 2 | ||||
-rw-r--r-- | src/engine/NodeFactory.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/engine/LV2Node.cpp b/src/engine/LV2Node.cpp index b682ca4e..be16e76d 100644 --- a/src/engine/LV2Node.cpp +++ b/src/engine/LV2Node.cpp @@ -220,7 +220,7 @@ LV2Node::instantiate(BufferFactory& bufs) break; } - assert(port_name.find("/") == string::npos); + assert(port_name.find('/') == string::npos); port_path = path().child(port_name); diff --git a/src/engine/NodeFactory.cpp b/src/engine/NodeFactory.cpp index 87b54d81..5ff21c04 100644 --- a/src/engine/NodeFactory.cpp +++ b/src/engine/NodeFactory.cpp @@ -20,6 +20,7 @@ #include <dirent.h> #include <float.h> #include <cmath> +#include <glibmm/miscutils.h> #include "redlandmm/World.hpp" #include "raul/log.hpp" #include "raul/Atom.hpp" @@ -223,7 +224,7 @@ NodeFactory::load_ladspa_plugins() if (!strcmp(pfile->d_name, ".") || !strcmp(pfile->d_name, "..")) continue; - const string lib_path = dir +"/"+ pfile->d_name; + const string lib_path = Glib::build_filename(dir, pfile->d_name); // Ignore stupid libtool files. Kludge alert. if (lib_path.substr(lib_path.length()-3) == ".la") |