From efca18acf1e17be9932b375347ce95f733c2dc59 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Mar 2010 20:45:14 +0000 Subject: Use portable path construction. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2518 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/LV2Node.cpp | 2 +- src/engine/NodeFactory.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/engine') 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 #include #include +#include #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") -- cgit v1.2.1