diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2018-06-30 12:43:08 +0200 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2018-06-30 12:43:08 +0200 |
commit | a98326eb2954ac1e79f5eac28dbeab3ec15e047f (patch) | |
tree | bb16257a1894b488e365851273735ec13a9442ef /zen/error_log.h | |
parent | 10.0 (diff) | |
download | FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.tar.gz FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.tar.bz2 FreeFileSync-a98326eb2954ac1e79f5eac28dbeab3ec15e047f.zip |
10.1
Diffstat (limited to 'zen/error_log.h')
-rwxr-xr-x | zen/error_log.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/zen/error_log.h b/zen/error_log.h index b6660850..0de88856 100755 --- a/zen/error_log.h +++ b/zen/error_log.h @@ -13,7 +13,7 @@ #include <string> #include "time.h" #include "i18n.h" -#include "string_base.h" +#include "zstring.h" namespace zen @@ -26,13 +26,11 @@ enum MessageType MSG_TYPE_FATAL_ERROR = 0x8, }; -using MsgString = Zbase<wchar_t>; //std::wstring may employ small string optimization: we cannot accept bloating the "ErrorLog::entries" memory block below (think 1 million items) - struct LogEntry { time_t time = 0; MessageType type = MSG_TYPE_FATAL_ERROR; - MsgString message; + Zstringw message; //std::wstring may employ small string optimization: we cannot accept bloating the "ErrorLog::entries" memory block below (think 1 million items) }; template <class String> @@ -69,7 +67,7 @@ private: template <class String> inline void ErrorLog::logMsg(const String& text, MessageType type) { - entries_.push_back({ std::time(nullptr), type, copyStringTo<MsgString>(text) }); + entries_.push_back({ std::time(nullptr), type, copyStringTo<Zstringw>(text) }); } |