Use in-place construction.

This was SVN commit r16894.
This commit is contained in:
leper committed 2015-07-29 23:44:17 +00:00
1 parent c5eb9b7bb7
commit 8bfe16cac8
20 files changed
+40 -40

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 2010 Wildfire Games.
/* Copyright (C) 2015 Wildfire Games.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
@@ -38,7 +38,7 @@ CScriptStatsTable::CScriptStatsTable()
void CScriptStatsTable::Add(const ScriptInterface* scriptInterface, const std::string& title)
{
m_ScriptInterfaces.push_back(std::make_pair(scriptInterface, title));
m_ScriptInterfaces.emplace_back(scriptInterface, title);
}
void CScriptStatsTable::Remove(const ScriptInterface* scriptInterface)