diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-02-04 03:55:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-02-04 03:55:27 +0300 |
commit | 8532b189d874c719f8bda0fcf8d2e427cb2b2863 (patch) | |
tree | fc350b64457fb482710d8981ff0fe710c8994ad1 /src/resources/db/unitsdb.cpp | |
parent | 819681f76bdabe1f4fc379007956d8118aa39228 (diff) | |
download | manaverse-8532b189d874c719f8bda0fcf8d2e427cb2b2863.tar.gz manaverse-8532b189d874c719f8bda0fcf8d2e427cb2b2863.tar.bz2 manaverse-8532b189d874c719f8bda0fcf8d2e427cb2b2863.tar.xz manaverse-8532b189d874c719f8bda0fcf8d2e427cb2b2863.zip |
Fix code style.
Diffstat (limited to 'src/resources/db/unitsdb.cpp')
-rw-r--r-- | src/resources/db/unitsdb.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |