Fixed remaining VS warnings (hopefully all of them, this time)

This commit is contained in:
PKEuS 2014-06-04 22:27:51 +02:00
parent 0a0f1072c0
commit f7f639465a
2 changed files with 9 additions and 9 deletions

View File

@ -507,24 +507,24 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
Library::Error err = _settings->library.load(argv[0], argv[i]+10);
std::string errmsg;
switch (err.errorcode) {
case Library::ErrorCode::OK:
case Library::OK:
break;
case Library::ErrorCode::FILE_NOT_FOUND:
case Library::FILE_NOT_FOUND:
errmsg = "File not found";
break;
case Library::ErrorCode::BAD_XML:
case Library::BAD_XML:
errmsg = "Bad XML";
break;
case Library::ErrorCode::BAD_ELEMENT:
case Library::BAD_ELEMENT:
errmsg = "Unexpected element";
break;
case Library::ErrorCode::MISSING_ATTRIBUTE:
case Library::MISSING_ATTRIBUTE:
errmsg = "Missing attribute";
break;
case Library::ErrorCode::BAD_ATTRIBUTE:
case Library::BAD_ATTRIBUTE:
errmsg = "Bad attribute";
break;
case Library::ErrorCode::BAD_ATTRIBUTE_VALUE:
case Library::BAD_ATTRIBUTE_VALUE:
errmsg = "Bad attribute value";
break;
}

View File

@ -483,10 +483,10 @@ int CppCheckExecutor::check_internal(CppCheck& cppcheck, int /*argc*/, const cha
{
Settings& settings = cppcheck.settings();
_settings = &settings;
bool std = (settings.library.load(argv[0], "std.cfg").errorcode == Library::ErrorCode::OK);
bool std = (settings.library.load(argv[0], "std.cfg").errorcode == Library::OK);
bool posix = true;
if (settings.standards.posix)
posix = (settings.library.load(argv[0], "posix.cfg").errorcode == Library::ErrorCode::OK);
posix = (settings.library.load(argv[0], "posix.cfg").errorcode == Library::OK);
if (!std || !posix) {
const std::list<ErrorLogger::ErrorMessage::FileLocation> callstack;