summaryrefslogtreecommitdiff
path: root/zen/error_log.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-06-23 16:51:52 -0400
committerB. Stack <bgstack15@gmail.com>2024-06-23 16:51:52 -0400
commit994ec9e1cba547bed6eef02f996ca2a7beaf777a (patch)
treec6bdfb8c2096a1c579d3603e050d5f697d2306e0 /zen/error_log.h
parentadd upstream 13.6 (diff)
downloadFreeFileSync-994ec9e1cba547bed6eef02f996ca2a7beaf777a.tar.gz
FreeFileSync-994ec9e1cba547bed6eef02f996ca2a7beaf777a.tar.bz2
FreeFileSync-994ec9e1cba547bed6eef02f996ca2a7beaf777a.zip
add upstream 13.713.7
Diffstat (limited to 'zen/error_log.h')
-rw-r--r--zen/error_log.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/zen/error_log.h b/zen/error_log.h
index ff630cb8..2e5c4eb0 100644
--- a/zen/error_log.h
+++ b/zen/error_log.h
@@ -38,9 +38,9 @@ void logMsg(ErrorLog& log, const std::wstring& msg, MessageType type, time_t tim
struct ErrorLogStats
{
- int info = 0;
- int warning = 0;
- int error = 0;
+ int infos = 0;
+ int warnings = 0;
+ int errors = 0;
};
ErrorLogStats getStats(const ErrorLog& log);
@@ -66,16 +66,16 @@ ErrorLogStats getStats(const ErrorLog& log)
switch (entry.type)
{
case MSG_TYPE_INFO:
- ++count.info;
+ ++count.infos;
break;
case MSG_TYPE_WARNING:
- ++count.warning;
+ ++count.warnings;
break;
case MSG_TYPE_ERROR:
- ++count.error;
+ ++count.errors;
break;
}
- assert(std::ssize(log) == count.info + count.warning + count.error);
+ assert(std::ssize(log) == count.infos + count.warnings + count.errors);
return count;
}
bgstack15