1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 19:13:07 +01:00

Add const ref, remove excess .c_str(), push_* -> emplace_* and rewrite constructors

This commit is contained in:
germanaizek
2022-04-25 16:32:04 +03:00
committed by Hielke Morsink
parent cdc1a912d3
commit 0045aed7f9
14 changed files with 18 additions and 19 deletions

View File

@@ -457,7 +457,7 @@ void ScriptEngine::RefreshPlugins()
{
if (plugin->HasPath())
{
plugins.push_back(std::string(plugin->GetPath()));
plugins.emplace_back(plugin->GetPath());
}
}
@@ -580,7 +580,7 @@ void ScriptEngine::StopUnloadRegisterAllPlugins()
std::vector<std::string> pluginPaths;
for (auto& plugin : _plugins)
{
pluginPaths.push_back(std::string(plugin->GetPath()));
pluginPaths.emplace_back(plugin->GetPath());
StopPlugin(plugin);
}
for (auto& plugin : _plugins)