Codechange: Accept std::string in RemoveGroup().
This commit is contained in:

committed by
Peter Nelson

parent
bb6fa9bf3b
commit
3961318974
@@ -189,9 +189,9 @@ IniGroup *IniLoadFile::GetGroup(const std::string &name, bool create_new)
|
||||
* Remove the group with the given name.
|
||||
* @param name name of the group to remove.
|
||||
*/
|
||||
void IniLoadFile::RemoveGroup(const char *name)
|
||||
void IniLoadFile::RemoveGroup(const std::string &name)
|
||||
{
|
||||
size_t len = strlen(name);
|
||||
size_t len = name.length();
|
||||
IniGroup *prev = nullptr;
|
||||
IniGroup *group;
|
||||
|
||||
|
Reference in New Issue
Block a user