Changeset 11730 for trunk/FACT++/src/DimServiceInfoList.cc
- Timestamp:
- 07/31/11 12:02:11 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimServiceInfoList.cc
r11713 r11730 113 113 //! 114 114 //! @param s 115 //! server which should be removed 115 //! server which should be removed. We need to make a copy, otherwise 116 //! RemoveServer will destroy the staring the reference is pointing to 116 117 //! 117 118 //! @throws 118 119 //! a runtime_error is the server to be removed is not in the list 119 120 // 120 void DimServiceInfoList::RemoveServer(const string &s)121 void DimServiceInfoList::RemoveServer(const string s) 121 122 { 122 123 const ServiceInfoList::iterator v = fServiceInfoList.find(s); … … 149 150 { 150 151 while (fServiceInfoList.size()>0) 151 { 152 // We need to make a copy, otherwise RemoveServer will 153 // destroy the staring the reference is pointing to 154 const string name = fServiceInfoList.begin()->first; 155 RemoveServer(name); 156 } 152 RemoveServer(fServiceInfoList.begin()->first); 157 153 } 158 154
Note:
See TracChangeset
for help on using the changeset viewer.