From 6c9ef6af1b72b74b9ab94cc1c1349c3cd70c8be6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 May 2015 23:13:00 +0300 Subject: Add strong types bool type UseResman. --- src/utils/xml.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils/xml.cpp') 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(PhysFs::loadFile( filename.c_str(), size)); -- cgit v1.2.3-70-g09d2