summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OnScreenDisplay.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-07-28 22:42:42 -0400
committerLioncash <mathew1800@gmail.com>2019-07-28 22:42:45 -0400
commit50b240fcbd3822e3d7aa9d5fa2c86274393de14a (patch)
tree6ac4a40e440019c30ebf32e85e096ad31ba91765 /Source/Core/VideoCommon/OnScreenDisplay.cpp
parentb0113b6c64a7807e35cfd9dd597d3c5e77b4ceda (diff)
VideoCommon/OnScreenDisplay: Default initialize all Message members
Provides a deterministic initial state in the case of the default constructor.
Diffstat (limited to 'Source/Core/VideoCommon/OnScreenDisplay.cpp')
-rw-r--r--Source/Core/VideoCommon/OnScreenDisplay.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/OnScreenDisplay.cpp b/Source/Core/VideoCommon/OnScreenDisplay.cpp
index a38dc35318..24d8987d99 100644
--- a/Source/Core/VideoCommon/OnScreenDisplay.cpp
+++ b/Source/Core/VideoCommon/OnScreenDisplay.cpp
@@ -26,14 +26,14 @@ constexpr float WINDOW_PADDING = 4.0f; // Pixels between subsequent OSD message
struct Message
{
- Message() {}
+ Message() = default;
Message(const std::string& text_, u32 timestamp_, u32 color_)
: text(text_), timestamp(timestamp_), color(color_)
{
}
std::string text;
- u32 timestamp;
- u32 color;
+ u32 timestamp = 0;
+ u32 color = 0;
};
static std::multimap<MessageType, Message> s_messages;
static std::mutex s_messages_mutex;