Replaced emplace_back with push_back

This commit is contained in:
mathusummut
2018-05-07 22:51:46 +02:00
parent d1acd87423
commit 9d3678cee9
14 changed files with 40 additions and 39 deletions

View File

@@ -2,6 +2,7 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN 1
#include <windows.h>
#include <stdio.h>
typedef HANDLE PipeType;
#define NULLPIPE NULL
typedef unsigned __int8 uint8;

View File

@@ -468,7 +468,7 @@ namespace Glest {
for (int i = 0; i < (int) scriptsNode->getChildCount(); ++i) {
const XmlNode *scriptNode = scriptsNode->getChild(i);
scripts.emplace_back(Script(getFunctionName(scriptNode), scriptNode->getText()));
scripts.push_back(Script(getFunctionName(scriptNode), scriptNode->getText()));
}
}