Changeset 6fb1409 in rtems-tools for linkers/rld-config.cpp
- Timestamp:
- Sep 8, 2014, 10:20:41 PM (7 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- b7ad4a2
- Parents:
- 2126ea7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
linkers/rld-config.cpp
r2126ea7 r6fb1409 43 43 } 44 44 45 const record&46 section:: get_record (const std::string& name) const45 bool 46 section::has_record (const std::string& name) const 47 47 { 48 48 for (records::const_iterator ri = recs.begin (); … … 51 51 { 52 52 if ((*ri).name == name) 53 return true; 54 } 55 return false; 56 } 57 58 const record& 59 section::get_record (const std::string& name) const 60 { 61 for (records::const_iterator ri = recs.begin (); 62 ri != recs.end (); 63 ++ri) 64 { 65 if ((*ri).name == name) 53 66 return *ri; 54 67 } 55 68 56 throw error ("not found", "config record: " + this->name + '/' + name);69 throw rld::error ("not found", "config record: " + this->name + '/' + name); 57 70 } 58 71
Note: See TracChangeset
for help on using the changeset viewer.