summaryrefslogtreecommitdiff
path: root/Source/Core/Common/MsgHandler.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-06-19 15:58:46 -0400
committerLioncash <mathew1800@gmail.com>2019-06-19 16:00:16 -0400
commit0eddf6dd8f2eb02bba48e38c24a90180e45b3799 (patch)
tree876b918bcdd5212b7cc775d9f05b50da13f33274 /Source/Core/Common/MsgHandler.cpp
parent1968643297189887b4b3a76890e385b0f7a66ec7 (diff)
Common/MsgHandler: Use std::string's empty for emptiness checking in MsgAlert
Provides more straightforward code compared to negating a length check.
Diffstat (limited to 'Source/Core/Common/MsgHandler.cpp')
-rw-r--r--Source/Core/Common/MsgHandler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/MsgHandler.cpp b/Source/Core/Common/MsgHandler.cpp
index 360a77ca0f..4744a5ff44 100644
--- a/Source/Core/Common/MsgHandler.cpp
+++ b/Source/Core/Common/MsgHandler.cpp
@@ -89,7 +89,7 @@ bool MsgAlert(bool yes_no, MsgType style, const char* format, ...)
static std::string ques_caption;
static std::string crit_caption;
- if (!info_caption.length())
+ if (info_caption.empty())
{
info_caption = s_str_translator(_trans("Information"));
ques_caption = s_str_translator(_trans("Question"));