Skip to content
Permalink
Browse files

Common/MsgHandler: Use std::string's empty for emptiness checking in …

…MsgAlert

Provides more straightforward code compared to negating a length check.
  • Loading branch information...
lioncash committed Jun 19, 2019
1 parent 1968643 commit 0eddf6dd8f2eb02bba48e38c24a90180e45b3799
Showing with 1 addition and 1 deletion.
  1. +1 −1 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"));

0 comments on commit 0eddf6d

Please sign in to comment.
You can’t perform that action at this time.