summaryrefslogtreecommitdiffstats
path: root/src/shared/Store.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
committerDavid Robillard <d@drobilla.net>2011-05-13 02:57:36 +0000
commit198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch)
treeeb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/shared/Store.cpp
parent981c7950a6f5fc9f22decaee261556d20b641d5c (diff)
downloadingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2
ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared/Store.cpp')
-rw-r--r--src/shared/Store.cpp7
1 files changed, 4 insertions, 3 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());