diff options
author | David Robillard <d@drobilla.net> | 2012-08-14 21:14:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-14 21:14:52 +0000 |
commit | 2118d961d97a1e454ee5391785b700d70f22f387 (patch) | |
tree | 554beb7c7f3c1d1e1025c41fabc350dfbc494de2 /raul/Path.hpp | |
parent | 1b8b57121623825a4af571042ce9d365b9d55f05 (diff) | |
download | raul-2118d961d97a1e454ee5391785b700d70f22f387.tar.gz raul-2118d961d97a1e454ee5391785b700d70f22f387.tar.bz2 raul-2118d961d97a1e454ee5391785b700d70f22f387.zip |
Remove Table classes.
More thorough Path testing.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4695 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul/Path.hpp')
-rw-r--r-- | raul/Path.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
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)); } }; |