diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-08 23:02:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-08 23:02:06 +0300 |
commit | 7e66a4606bb15d98197f71245fe191d03152ee5f (patch) | |
tree | 825022571cfb55d70f1ca3c142f79db3758fb72b /src/gui/windows/ministatuswindow.cpp | |
parent | a61ac4664d55cddb18d2d861e76629bd07676129 (diff) | |
download | manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.tar.gz manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.tar.bz2 manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.tar.xz manaverse-7e66a4606bb15d98197f71245fe191d03152ee5f.zip |
Improve some empty string checks.
Diffstat (limited to 'src/gui/windows/ministatuswindow.cpp')
-rw-r--r-- | src/gui/windows/ministatuswindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/windows/ministatuswindow.cpp b/src/gui/windows/ministatuswindow.cpp index fc2e9a82c..e0fe46bb3 100644 --- a/src/gui/windows/ministatuswindow.cpp +++ b/src/gui/windows/ministatuswindow.cpp @@ -507,7 +507,7 @@ void MiniStatusWindow::loadBars() { const std::string str = config.getValue( "ministatus" + toString(f), ""); - if (str == "") + if (str.empty()) continue; ProgressBar *const bar = mBarNames[str]; if (!bar) |