summaryrefslogtreecommitdiff
path: root/Source/Core/Common/IniFile.cpp
diff options
context:
space:
mode:
authorMarkus Wick <markus+github@selfnet.de>2015-02-04 17:46:07 +0100
committerMarkus Wick <markus+github@selfnet.de>2015-02-04 17:46:07 +0100
commit235fa051714f509a09ef6860f02d566af426a0f4 (patch)
tree66a99498482b3bec7e703cfc011cd4036d190b62 /Source/Core/Common/IniFile.cpp
parent012a4c18ff9b8beeaafcf3e24846761e5c194a42 (diff)
parente07679114bf33e387c2d4094cac3174650def0e5 (diff)
Merge pull request #2013 from lioncash/emplace
Use emplace_* functions where in-place construction is preferable
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
-rw-r--r--Source/Core/Common/IniFile.cpp2
1 files changed, 1 insertions, 1 deletions
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 = &sections.back();
}
return section;