| 418 | // |
| 419 | //***************************************************************************** |
| 420 | const CIniFileSection * IIniFile::GetSectionByName( const char * section_name ) const |
| 421 | { |
| 422 | // TODO: Could use a map for this if it starts to prove expensive |
| 423 | for( u32 i = 0; i < mSections.size(); ++i ) |
| 424 | { |
| 425 | if( strcmp( mSections[ i ]->GetName(), section_name ) == 0 ) |
| 426 | { |
| 427 | return mSections[ i ]; |
| 428 | } |
| 429 | } |
| 430 | |
| 431 | return NULL; |
| 432 | } |