diff options
author | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:04:33 +0200 |
---|---|---|
committer | Daniel Wilhelm <shieldwed@outlook.com> | 2018-05-09 00:04:33 +0200 |
commit | 017e56b81ba735c39c43701f737ac7dde55da7b4 (patch) | |
tree | ea7aaaee13a06a702701e2f74f5d390e10ae303e /zen/error_log.h | |
parent | 9.4 (diff) | |
download | FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.gz FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.tar.bz2 FreeFileSync-017e56b81ba735c39c43701f737ac7dde55da7b4.zip |
9.5
Diffstat (limited to 'zen/error_log.h')
-rwxr-xr-x | zen/error_log.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/zen/error_log.h b/zen/error_log.h index 90016666..0d62dd1f 100755 --- a/zen/error_log.h +++ b/zen/error_log.h @@ -49,12 +49,12 @@ public: //subset of std::vector<> interface: using const_iterator = std::vector<LogEntry>::const_iterator; - const_iterator begin() const { return entries.begin(); } - const_iterator end () const { return entries.end (); } - bool empty() const { return entries.empty(); } + const_iterator begin() const { return entries_.begin(); } + const_iterator end () const { return entries_.end (); } + bool empty() const { return entries_.empty(); } private: - std::vector<LogEntry> entries; //list of non-resolved errors and warnings + std::vector<LogEntry> entries_; //list of non-resolved errors and warnings }; @@ -70,14 +70,14 @@ template <class String> inline void ErrorLog::logMsg(const String& text, zen::MessageType type) { const LogEntry newEntry = { std::time(nullptr), type, copyStringTo<MsgString>(text) }; - entries.push_back(newEntry); + entries_.push_back(newEntry); } inline int ErrorLog::getItemCount(int typeFilter) const { - return static_cast<int>(std::count_if(entries.begin(), entries.end(), [&](const LogEntry& e) { return e.type & typeFilter; })); + return static_cast<int>(std::count_if(entries_.begin(), entries_.end(), [&](const LogEntry& e) { return e.type & typeFilter; })); } @@ -103,7 +103,7 @@ String formatMessageImpl(const LogEntry& entry) //internal linkage return std::wstring(); }; - String formattedText = L"[" + formatTime<String>(FORMAT_TIME, getLocalTime(entry.time)) + L"] " + copyStringTo<String>(getTypeName()) + L": "; + String formattedText = L"[" + formatTime<String>(FORMAT_TIME, getLocalTime(entry.time)) + L"] " + copyStringTo<String>(getTypeName()) + L": "; const size_t prefixLen = formattedText.size(); for (auto it = entry.message.begin(); it != entry.message.end(); ) |