X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/d49162286e811faacd7d7f3277da61efdfb635db..61b81e9d4ef10c5445ace91fbdfc4d2c040e67d2:/stglibs/conffiles.lib/conffiles.cpp?ds=sidebyside diff --git a/stglibs/conffiles.lib/conffiles.cpp b/stglibs/conffiles.lib/conffiles.cpp index 3c3f3917..302c3651 100644 --- a/stglibs/conffiles.lib/conffiles.cpp +++ b/stglibs/conffiles.lib/conffiles.cpp @@ -74,7 +74,7 @@ std::string Trim(std::string val) return TrimR(TrimL(val)); } //--------------------------------------------------------------------------- -} +} // namespace anonymous //--------------------------------------------------------------------------- bool StringCaseCmp(const std::string & str1, const std::string & str2) @@ -184,7 +184,7 @@ const std::map::const_iterator it(param_val.find(param if (it != param_val.end()) { char *res; - *val = strtol(it->second.c_str(), &res, 10); + *val = static_cast(strtol(it->second.c_str(), &res, 10)); if (*res != 0) { *val = defaultVal; //Error! @@ -204,7 +204,7 @@ const std::map::const_iterator it(param_val.find(param if (it != param_val.end()) { char *res; - *val = strtoul(it->second.c_str(), &res, 10); + *val = static_cast(strtoul(it->second.c_str(), &res, 10)); if (*res != 0) { *val = defaultVal; //Error!