mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
Use emplace_* functions where in-place construction is preferable
This commit is contained in:
@ -203,7 +203,7 @@ IniFile::Section* IniFile::GetOrCreateSection(const std::string& sectionName)
|
||||
Section* section = GetSection(sectionName);
|
||||
if (!section)
|
||||
{
|
||||
sections.push_back(Section(sectionName));
|
||||
sections.emplace_back(sectionName);
|
||||
section = §ions.back();
|
||||
}
|
||||
return section;
|
||||
|
Reference in New Issue
Block a user