From 9f975e1e8a7dd0d8d90739829dc07d1188ad51e5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 8 Oct 2007 16:30:57 +0000 Subject: SharedPtr-ify engine side store. Fix reattaching to engine. Fix connection paths. Remove last dependencies on client (model) library from Serialiser. Fix Raul::PathTable::find_descendants_end. git-svn-id: http://svn.drobilla.net/lad/raul@847 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Path.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'raul/Path.hpp') diff --git a/raul/Path.hpp b/raul/Path.hpp index d1a86f9..b6a1395 100644 --- a/raul/Path.hpp +++ b/raul/Path.hpp @@ -18,6 +18,7 @@ #ifndef RAUL_PATH_HPP #define RAUL_PATH_HPP +#include #include #include #include @@ -130,7 +131,7 @@ public: { return ( child == parent || (child.length() > parent.length() && (!strncmp(parent.c_str(), child.c_str(), parent.length()) - && child[parent.length()] == '/')) ); + && (parent == "/" || child[parent.length()] == '/'))) ); } }; -- cgit v1.2.1