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;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user