mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 12:48:57 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue