diff options
| author | Shauren <shauren.trinity@gmail.com> | 2024-07-16 16:31:40 +0200 |
|---|---|---|
| committer | Ovahlord <dreadkiller@gmx.de> | 2024-07-18 22:34:07 +0200 |
| commit | fc27c71dee3e0a4a70a52d0a094325a977d298f2 (patch) | |
| tree | 15bf67e63dcaef4511190fc9732f73d8dab4342d /src/common/Utilities | |
| parent | c12f669fc5050017d98ec57c8a45e575154a5edb (diff) | |
Core/Logging: Minor internal refactor
* Avoid formatting to output with fprintf
* Use vector instead of unordered_map to store appenders in Logger
(cherry picked from commit 81bec6954fa6640e2942d836a856e6bc9d421bce)
Diffstat (limited to 'src/common/Utilities')
| -rw-r--r-- | src/common/Utilities/Util.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Utilities/Util.cpp b/src/common/Utilities/Util.cpp index 5fb34c59948..9730c169832 100644 --- a/src/common/Utilities/Util.cpp +++ b/src/common/Utilities/Util.cpp @@ -826,6 +826,7 @@ bool ReadWinConsole(std::string& str, size_t size /*= 256*/) bool WriteWinConsole(std::string_view str, bool error /*= false*/) { std::wstring wstr; + wstr.reserve(str.length()); if (!Utf8toWStr(str, wstr)) return false; |
