diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-03 22:43:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-04 00:57:58 +0300 |
commit | de73e67e830c15e6b623ba03eda88f9faacac40c (patch) | |
tree | 79422e9c944b751cd0c0b8ad6fd37e32ddaaa130 /src/resources/db/unitsdb.cpp | |
parent | 653f89fa3b236103670796af4b76a23e8ae84248 (diff) | |
download | plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.gz plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.bz2 plus-de73e67e830c15e6b623ba03eda88f9faacac40c.tar.xz plus-de73e67e830c15e6b623ba03eda88f9faacac40c.zip |
Add missing load / unload databases logging.
Diffstat (limited to 'src/resources/db/unitsdb.cpp')
-rw-r--r-- | src/resources/db/unitsdb.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/resources/db/unitsdb.cpp b/src/resources/db/unitsdb.cpp index bf498411b..ab42ba04c 100644 --- a/src/resources/db/unitsdb.cpp +++ b/src/resources/db/unitsdb.cpp @@ -69,8 +69,9 @@ static std::string formatUnit(const int value, static std::string splitNumber(std::string str, const std::string &separator); -void UnitsDb::loadUnits() +void UnitsDb::load() { + logger->log1("Initializing unit database..."); { // Setup default weight UnitDescription ud; @@ -115,6 +116,12 @@ void UnitsDb::loadUnits() loadXmlDir("unitsPatchDir", loadXmlFile); } +void UnitsDb::unload() +{ + logger->log1("Unloading unit database..."); + mCurrencies.clear(); +} + static UnitDescription loadUnit(XmlNodePtr node) { UnitDescription ud; |