From e07679114bf33e387c2d4094cac3174650def0e5 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 4 Feb 2015 10:36:42 -0500 Subject: Use emplace_* functions where in-place construction is preferable --- Source/Core/Common/IniFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/IniFile.cpp') diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index 413c5dc82b..f94e62ebfa 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -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; -- cgit v1.2.3