diff options
author | Chris Johns <chrisj@rtems.org> | 2012-11-21 13:04:19 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2012-11-21 13:04:19 +1100 |
commit | 9f502af7b4eb76e67b7914c754db5d85a49443cd (patch) | |
tree | 45cb455ceb0086293b37d097908d8cd9023a1dcd | |
parent | c99ede97151dfe31a7e79b9a4b0e1037cac0f873 (diff) |
Make getting objects const.
-rw-r--r-- | rld-files.cpp | 6 | ||||
-rw-r--r-- | rld-files.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rld-files.cpp b/rld-files.cpp index c5901ce..6bb19a7 100644 --- a/rld-files.cpp +++ b/rld-files.cpp @@ -1319,14 +1319,14 @@ namespace rld } void - cache::get_objects (object_list& list) + cache::get_objects (object_list& list) const { list.clear (); - for (paths::iterator pi = paths_.begin (); + for (paths::const_iterator pi = paths_.begin (); pi != paths_.end (); ++pi) { - objects::iterator oi = objects_.find (*pi); + objects::const_iterator oi = objects_.find (*pi); if (oi == objects_.end ()) throw rld_error_at ("path not found in objects"); list.push_back ((*oi).second); diff --git a/rld-files.h b/rld-files.h index b057b2e..421d7af 100644 --- a/rld-files.h +++ b/rld-files.h @@ -723,7 +723,7 @@ namespace rld /** * Get the added objects. Does not include the ones in th archives. */ - void get_objects (object_list& list); + void get_objects (object_list& list) const; /** * Get the paths. |