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:
committed by
Hielke Morsink
parent
cdc1a912d3
commit
0045aed7f9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user