summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ClashAvoider.cpp5
-rw-r--r--src/shared/ClashAvoider.hpp2
2 files changed, 4 insertions, 3 deletions
diff --git a/src/shared/ClashAvoider.cpp b/src/shared/ClashAvoider.cpp
index 19a8f15d..10a26934 100644
--- a/src/shared/ClashAvoider.cpp
+++ b/src/shared/ClashAvoider.cpp
@@ -187,9 +187,10 @@ ClashAvoider::set_property(const Raul::URI& subject,
}
void
-ClashAvoider::del(const Raul::Path& path)
+ClashAvoider::del(const Raul::URI& uri)
{
- _target.del(map_path(path));
+ if (Raul::Path::is_path(uri))
+ _target.del(map_path(Raul::Path(uri.str())));
}
} // namespace Shared
diff --git a/src/shared/ClashAvoider.hpp b/src/shared/ClashAvoider.hpp
index 13eb1007..3cd5c8ba 100644
--- a/src/shared/ClashAvoider.hpp
+++ b/src/shared/ClashAvoider.hpp
@@ -68,7 +68,7 @@ public:
const Raul::URI& predicate,
const Raul::Atom& value);
- virtual void del(const Raul::Path& path);
+ virtual void del(const Raul::URI& uri);
private:
const Raul::URI map_uri(const Raul::URI& in);