diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-06 23:13:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-06 23:13:00 +0300 |
commit | 6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6 (patch) | |
tree | c31a7e703e9452f667ef5a7f0958375ba388c50e /src/configuration.cpp | |
parent | a86bdc28fb8bc8a70c6a19523789495d87c7a56d (diff) | |
download | manaplus-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.gz manaplus-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.bz2 manaplus-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.xz manaplus-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.zip |
Add strong types bool type UseResman.
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index f1691baad..0ed1299bb 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -350,7 +350,7 @@ Configuration::Configuration() : mDefaultsData(nullptr), mDirectory(), mFilename(), - mUseResManager(false), + mUseResManager(UseResman_false), mUpdated(false) { #ifdef DEBUG_CONFIG @@ -384,7 +384,7 @@ void Configuration::unload() mConfigPath.clear(); mDirectory.clear(); mFilename.clear(); - mUseResManager = false; + mUseResManager = UseResman_false; ConfigurationObject::clear(); } @@ -710,14 +710,15 @@ void ConfigurationObject::initFromXML(const XmlNodePtrConst parent_node) } } -void Configuration::init(const std::string &filename, const bool useResManager) +void Configuration::init(const std::string &filename, + const UseResman useResManager) { cleanDefaults(); XML::Document doc(filename, useResManager, false); mFilename = filename; mUseResManager = useResManager; - if (useResManager) + if (useResManager == UseResman_true) { mConfigPath = "PhysFS://" + filename; mDirectory.clear(); |