From 8532b189d874c719f8bda0fcf8d2e427cb2b2863 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 4 Feb 2017 03:55:27 +0300 Subject: Fix code style. --- src/resources/db/unitsdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/db') diff --git a/src/resources/db/unitsdb.cpp b/src/resources/db/unitsdb.cpp index 465b44c8f..37c516390 100644 --- a/src/resources/db/unitsdb.cpp +++ b/src/resources/db/unitsdb.cpp @@ -102,7 +102,7 @@ void UnitsDb::loadUnits() ud.conversion = 1.0; ud.mix = false; - UnitLevel bu = {"¤", 1, 0, ""}; + const UnitLevel bu = {"¤", 1, 0, ""}; ud.levels.push_back(bu); defaultCurrency = ud; @@ -175,7 +175,7 @@ static void loadCurrencies(XmlNodePtr parentNode) if (xmlNameEqual(node, "unit")) { const std::string name = XML::getProperty(node, "name", ""); - if (name == "") + if (name.empty()) { reportAlways("Error: unknown currency name."); continue; -- cgit v1.2.3-70-g09d2