From 0eddf6dd8f2eb02bba48e38c24a90180e45b3799 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 19 Jun 2019 15:58:46 -0400 Subject: [PATCH] Common/MsgHandler: Use std::string's empty for emptiness checking in MsgAlert Provides more straightforward code compared to negating a length check. --- Source/Core/Common/MsgHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"));