删除配置只在非WIN平台处理
This commit is contained in:
parent
592bd6ce31
commit
7bfad8d5a7
|
@ -231,10 +231,10 @@ void simple_ini::remove(const char* sec, const char* key)
|
|||
void simple_ini::remove(const char* sec)
|
||||
{
|
||||
#if defined(WIN32) || defined(_WIN64)
|
||||
#else
|
||||
std::vector<SECKEY>::iterator it = std::find(values_.begin(), values_.end(), sec);
|
||||
if (it != values_.end())
|
||||
values_.erase(it);
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
void simple_ini::clear(void)
|
||||
|
|
Loading…
Reference in New Issue