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

Provides more straightforward code compared to negating a length check.
This commit is contained in:
Lioncash 2019-06-19 15:58:46 -04:00
parent 1968643297
commit 0eddf6dd8f

View File

@ -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"));