summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/Store.cpp7
-rw-r--r--src/shared/Store.hpp8
2 files changed, 8 insertions, 7 deletions
diff --git a/src/shared/Store.cpp b/src/shared/Store.cpp
index 9d5639b1..62c7f824 100644
--- a/src/shared/Store.cpp
+++ b/src/shared/Store.cpp
@@ -48,7 +48,7 @@ Store::add(GraphObject* o)
}
Store::const_iterator
-Store::children_begin(SharedPtr<GraphObject> o) const
+Store::children_begin(SharedPtr<const GraphObject> o) const
{
const_iterator parent = find(o->path());
assert(parent != end());
@@ -57,7 +57,7 @@ Store::children_begin(SharedPtr<GraphObject> o) const
}
Store::const_iterator
-Store::children_end(SharedPtr<GraphObject> o) const
+Store::children_end(SharedPtr<const GraphObject> o) const
{
const_iterator parent = find(o->path());
assert(parent != end());
@@ -65,7 +65,8 @@ Store::children_end(SharedPtr<GraphObject> o) const
}
SharedPtr<GraphObject>
-Store::find_child(SharedPtr<GraphObject> parent, const string& child_name) const
+Store::find_child(SharedPtr<const GraphObject> parent,
+ const string& child_name) const
{
const_iterator pi = find(parent->path());
assert(pi != end());
diff --git a/src/shared/Store.hpp b/src/shared/Store.hpp
index 53f4ecf2..997305a1 100644
--- a/src/shared/Store.hpp
+++ b/src/shared/Store.hpp
@@ -34,11 +34,11 @@ public:
typedef Raul::Table< Raul::Path, SharedPtr<GraphObject> > Objects;
- const_iterator children_begin(SharedPtr<GraphObject> o) const;
- const_iterator children_end(SharedPtr<GraphObject> o) const;
+ const_iterator children_begin(SharedPtr<const GraphObject> o) const;
+ const_iterator children_end(SharedPtr<const GraphObject> o) const;
- SharedPtr<GraphObject> find_child(SharedPtr<GraphObject> parent,
- const std::string& child_name) const;
+ SharedPtr<GraphObject> find_child(SharedPtr<const GraphObject> parent,
+ const std::string& child_name) const;
unsigned child_name_offset(const Raul::Path& parent,
const Raul::Symbol& symbol,