From 2118d961d97a1e454ee5391785b700d70f22f387 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 14 Aug 2012 21:14:52 +0000 Subject: Remove Table classes. More thorough Path testing. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4695 a436a847-0d15-0410-975c-d299462d15a1 --- raul/Path.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'raul/Path.hpp') diff --git a/raul/Path.hpp b/raul/Path.hpp index 05fb029..867e2e3 100644 --- a/raul/Path.hpp +++ b/raul/Path.hpp @@ -198,10 +198,7 @@ public: /** Return true iff @p child is equal to, or a descendant of @p parent. */ static inline bool descendant_comparator(const Path& parent, const Path& child) { - return (child == parent || - (child.length() > parent.length() && - (!parent.compare(0, parent.length(), child, 0, parent.length()) - && (parent.is_root() || child[parent.length()] == '/')))); + return (child == parent || child.is_child_of(parent)); } }; -- cgit v1.2.1