mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-30 16:40:28 +01:00
refactor(sonar): construct elements in place with emplace_back (cpp:S6003)
This commit is contained in:
@@ -175,7 +175,7 @@ void WriteLog(std::string_view str, logtype type, bool isError)
|
||||
const auto message = FormatLogMessage(str);
|
||||
|
||||
std::scoped_lock lock(logMutex);
|
||||
InfoStack.push_back({message, isError});
|
||||
InfoStack.emplace_back(message, isError);
|
||||
}
|
||||
|
||||
void ErrorLog(std::string_view str, logtype type)
|
||||
|
||||
Reference in New Issue
Block a user