Changeset 977 for branches/Carsten_PtrWork/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.cpp
- Timestamp:
- 10/20/07 18:35:18 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/Carsten_PtrWork/Source/System/FieldContainer/Attachments/OSGStringAttributeMapBase.cpp
r976 r977 199 199 { 200 200 editMField(KeysFieldMask, _mfKeys); 201 _mfKeys.push_back( string(value));201 _mfKeys.push_back(value); 202 202 } 203 203 … … 219 219 fieldIt += uiIndex; 220 220 221 _mfKeys.insert(fieldIt, string(value));221 _mfKeys.insert(fieldIt, value); 222 222 } 223 223 … … 240 240 std::string const &pNewElem ) 241 241 { 242 Int32 elemIdx = _mfKeys.findIndex( string(pOldElem));242 Int32 elemIdx = _mfKeys.findIndex(pOldElem); 243 243 244 244 if(elemIdx != -1) … … 271 271 StringAttributeMapBase::subKeys(std::string const &value) 272 272 { 273 Int32 iElemIdx = _mfKeys.findIndex( string(value));273 Int32 iElemIdx = _mfKeys.findIndex(value); 274 274 275 275 if(iElemIdx != -1) … … 300 300 { 301 301 editMField(ValuesFieldMask, _mfValues); 302 _mfValues.push_back( string(value));302 _mfValues.push_back(value); 303 303 } 304 304 … … 320 320 fieldIt += uiIndex; 321 321 322 _mfValues.insert(fieldIt, string(value));322 _mfValues.insert(fieldIt, value); 323 323 } 324 324 … … 341 341 std::string const &pNewElem ) 342 342 { 343 Int32 elemIdx = _mfValues.findIndex( string(pOldElem));343 Int32 elemIdx = _mfValues.findIndex(pOldElem); 344 344 345 345 if(elemIdx != -1) … … 372 372 StringAttributeMapBase::subValues(std::string const &value) 373 373 { 374 Int32 iElemIdx = _mfValues.findIndex( string(value));374 Int32 iElemIdx = _mfValues.findIndex(value); 375 375 376 376 if(iElemIdx != -1)
