From 7e66a4606bb15d98197f71245fe191d03152ee5f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 8 Feb 2016 23:02:06 +0300 Subject: Improve some empty string checks. --- src/gui/theme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/theme.cpp') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 20ec774dc..f36a45579 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -983,7 +983,7 @@ static int readProgressType(const std::string &type) void Theme::loadColors(std::string file) { - if (file == "") + if (file.empty()) file = "colors.xml"; else file.append("/colors.xml"); -- cgit v1.2.3-70-g09d2