[Quest API] Cleanup string copies and push_backs. (#2807)

# Notes
- Several places use `push_back` instead of `emplace_back`.
- Several places use `std::string` instead of `const std::string&`.
This commit is contained in:
Alex King
2023-01-29 15:14:49 -05:00
committed by GitHub
parent 0fef46a6c1
commit bcc2e022dc
21 changed files with 372 additions and 397 deletions
+3 -3
View File
@@ -65,12 +65,12 @@ void ZoneLaunch::Start() {
if(m_port) {
std::string arg = m_zone + std::string(":") + std::to_string(m_port);
spec->args.push_back(arg);
spec->args.emplace_back(arg);
} else {
spec->args.push_back(m_zone);
spec->args.emplace_back(m_zone);
}
spec->args.push_back(m_launcherName);
spec->args.emplace_back(m_launcherName);
spec->handler = this;
spec->logFile = m_config->LogPrefix + m_zone + m_config->LogSuffix;