summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/bit_field.h3
-rw-r--r--src/common/logging/text_formatter.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 65e357dec..732201de7 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -178,8 +178,7 @@ public:
return ExtractValue(storage);
}
- // TODO: we may want to change this to explicit operator bool() if it's bug-free in VS2015
- constexpr FORCE_INLINE bool ToBool() const {
+ constexpr explicit operator bool() const {
return Value() != 0;
}
diff --git a/src/common/logging/text_formatter.cpp b/src/common/logging/text_formatter.cpp
index 8583916a8..05437c137 100644
--- a/src/common/logging/text_formatter.cpp
+++ b/src/common/logging/text_formatter.cpp
@@ -42,7 +42,7 @@ void PrintColoredMessage(const Entry& entry) {
return;
}
- CONSOLE_SCREEN_BUFFER_INFO original_info = {0};
+ CONSOLE_SCREEN_BUFFER_INFO original_info = {};
GetConsoleScreenBufferInfo(console_handle, &original_info);
WORD color = 0;