Changeset - r28006:7835d82043ea
[Not reviewed]
master
0 2 0
Peter Nelson - 8 months ago 2023-10-11 11:31:12
peter1138@openttd.org
Codechange: Accept std::string in RemoveGroup().
2 files changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/ini_load.cpp
Show inline comments
 
@@ -189,9 +189,9 @@ IniGroup *IniLoadFile::GetGroup(const st
 
 * 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;
 

	
src/ini_type.h
Show inline comments
 
@@ -62,7 +62,7 @@ struct IniLoadFile {
 
	virtual ~IniLoadFile();
 

	
 
	IniGroup *GetGroup(const std::string &name, bool create_new = true);
 
	void RemoveGroup(const char *name);
 
	void RemoveGroup(const std::string &name);
 

	
 
	void LoadFromDisk(const std::string &filename, Subdirectory subdir);
 

	
0 comments (0 inline, 0 general)