Once added, this class takes responsibility for deleting the property
| 187 | // Once added, this class takes responsibility for deleting the property |
| 188 | //***************************************************************************** |
| 189 | void IIniFileSection::AddProperty( const IIniFileProperty * p_property ) |
| 190 | { |
| 191 | PropertyVec::iterator it( std::lower_bound( mProperties.begin(), mProperties.end(), p_property->GetName(), SCompareProperties() ) ); |
| 192 | #ifdef DAEDALUS_ENABLE_ASSERTS |
| 193 | DAEDALUS_ASSERT( it == mProperties.end() || strcmp( (*it)->mName.c_str(), p_property->GetName() ) != 0, "This property already exists" ); |
| 194 | #endif |
| 195 | mProperties.insert( it, p_property ); |
| 196 | } |
| 197 | |
| 198 | //***************************************************************************** |
| 199 | // |
no test coverage detected