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 | b770b0c8da63ddc0b535f431278306060195e8f5 (patch) | |
tree | 71c0c2425d19ec50ccf567412a61df4c4f8c830d /linkers/rld-files.cpp | |
parent | Remove the warning about the warnings option on newer gccs. (diff) | |
download | rtems-tools-b770b0c8da63ddc0b535f431278306060195e8f5.tar.bz2 |
Make getting objects const.
Diffstat (limited to 'linkers/rld-files.cpp')
-rw-r--r-- | linkers/rld-files.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linkers/rld-files.cpp b/linkers/rld-files.cpp index c5901ce..6bb19a7 100644 --- a/linkers/rld-files.cpp +++ b/linkers/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); |