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/utils/xml.cpp | |
parent | a86bdc28fb8bc8a70c6a19523789495d87c7a56d (diff) | |
download | ManaVerse-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.gz ManaVerse-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.bz2 ManaVerse-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.tar.xz ManaVerse-6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6.zip |
Add strong types bool type UseResman.
Diffstat (limited to 'src/utils/xml.cpp')
-rw-r--r-- | src/utils/xml.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/xml.cpp b/src/utils/xml.cpp index 33173b3ee..487c177bb 100644 --- a/src/utils/xml.cpp +++ b/src/utils/xml.cpp @@ -76,7 +76,7 @@ static void xmlErrorLogger(void *ctx A_UNUSED, const char *msg, ...) namespace XML { Document::Document(const std::string &filename, - const bool useResman, + const UseResman useResman, const bool skipError) : mDoc(nullptr), mIsValid(false) @@ -89,7 +89,7 @@ namespace XML int size = 0; char *data = nullptr; valid = true; - if (useResman) + if (useResman == UseResman_true) { data = static_cast<char*>(PhysFs::loadFile( filename.c_str(), size)); |