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:
parent
1968643297
commit
0eddf6dd8f
|
@ -89,7 +89,7 @@ bool MsgAlert(bool yes_no, MsgType style, const char* format, ...)
|
||||||
static std::string ques_caption;
|
static std::string ques_caption;
|
||||||
static std::string crit_caption;
|
static std::string crit_caption;
|
||||||
|
|
||||||
if (!info_caption.length())
|
if (info_caption.empty())
|
||||||
{
|
{
|
||||||
info_caption = s_str_translator(_trans("Information"));
|
info_caption = s_str_translator(_trans("Information"));
|
||||||
ques_caption = s_str_translator(_trans("Question"));
|
ques_caption = s_str_translator(_trans("Question"));
|
||||||
|
|
Loading…
Reference in New Issue