Changeset b770b0c in rtems-tools


Ignore:
Timestamp:
Nov 21, 2012, 2:04:19 AM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, master
Children:
c46980e
Parents:
9ba4e48
Message:

Make getting objects const.

Location:
linkers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • linkers/rld-files.cpp

    r9ba4e48 rb770b0c  
    13201320
    13211321    void
    1322     cache::get_objects (object_list& list)
     1322    cache::get_objects (object_list& list) const
    13231323    {
    13241324      list.clear ();
    1325       for (paths::iterator pi = paths_.begin ();
     1325      for (paths::const_iterator pi = paths_.begin ();
    13261326           pi != paths_.end ();
    13271327           ++pi)
    13281328      {
    1329         objects::iterator oi = objects_.find (*pi);
     1329        objects::const_iterator oi = objects_.find (*pi);
    13301330        if (oi == objects_.end ())
    13311331          throw rld_error_at ("path not found in objects");
  • linkers/rld-files.h

    r9ba4e48 rb770b0c  
    724724       * Get the added objects. Does not include the ones in th archives.
    725725       */
    726       void get_objects (object_list& list);
     726      void get_objects (object_list& list) const;
    727727
    728728      /**
Note: See TracChangeset for help on using the changeset viewer.