summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 20:45:14 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 20:45:14 +0000
commitefca18acf1e17be9932b375347ce95f733c2dc59 (patch)
treed5bf359f287281fe9b2760fd7ec653f3ea5e3451 /src/engine
parentf2d901fe0424bafa39b794117c9547e4969017c6 (diff)
downloadingen-efca18acf1e17be9932b375347ce95f733c2dc59.tar.gz
ingen-efca18acf1e17be9932b375347ce95f733c2dc59.tar.bz2
ingen-efca18acf1e17be9932b375347ce95f733c2dc59.zip
Use portable path construction.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2518 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/LV2Node.cpp2
-rw-r--r--src/engine/NodeFactory.cpp3
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")