| 564 | } |
| 565 | |
| 566 | KeyValue* SettingsService::getSettingByKey(const char* key) |
| 567 | { |
| 568 | std::vector<KeyValue*>::const_iterator it; |
| 569 | KeyValue* keyValuePair = nullptr; |
| 570 | |
| 571 | for (it = m_keyValueList.begin(); it != m_keyValueList.end(); ++it) |
| 572 | { |
| 573 | if (nullptr != *it) |
| 574 | { |
| 575 | if (0 == strcmp((*it)->getKey(), key)) |
| 576 | { |
| 577 | keyValuePair = *it; |
| 578 | break; |
| 579 | } |
| 580 | } |
| 581 | } |
| 582 | |
| 583 | return keyValuePair; |
| 584 | } |
| 585 | |
| 586 | bool SettingsService::registerSetting(KeyValue* setting) |
| 587 | { |
no test coverage detected