删除配置只在非WIN平台处理

This commit is contained in:
gb 2022-07-18 17:04:22 +08:00
parent 592bd6ce31
commit 7bfad8d5a7
1 changed files with 1 additions and 1 deletions

View File

@ -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)