Fixed VS warnings
This commit is contained in:
parent
2455b76abd
commit
51f381edf3
|
@ -50,7 +50,7 @@ public:
|
|||
|
||||
class Error {
|
||||
public:
|
||||
Error() : errorcode(ErrorCode::OK) , reason("") {}
|
||||
Error() : errorcode(OK) , reason("") {}
|
||||
explicit Error(ErrorCode e) : errorcode(e) , reason("") {}
|
||||
Error(ErrorCode e, const std::string &r) : errorcode(e), reason(r) {}
|
||||
ErrorCode errorcode;
|
||||
|
|
|
@ -493,7 +493,7 @@ private:
|
|||
errout.str("");
|
||||
|
||||
Settings settings;
|
||||
if ((settings.library.load("./testrunner", "../cfg/std.cfg").errorcode != Library::ErrorCode::OK) && (settings.library.load("./testrunner", "cfg/std.cfg").errorcode != Library::ErrorCode::OK)) {
|
||||
if ((settings.library.load("./testrunner", "../cfg/std.cfg").errorcode != Library::OK) && (settings.library.load("./testrunner", "cfg/std.cfg").errorcode != Library::OK)) {
|
||||
complainMissingLib("std.cfg");
|
||||
return "";
|
||||
}
|
||||
|
|
|
@ -85,9 +85,9 @@ public:
|
|||
#define REGISTER_TEST( CLASSNAME ) namespace { CLASSNAME instance; }
|
||||
|
||||
#ifdef _WIN32
|
||||
#define LOAD_LIB_2( LIB, NAME ) { if (((LIB).load("./testrunner", "../cfg/" NAME).errorcode != Library::ErrorCode::OK) && ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::ErrorCode::OK)) { complainMissingLib(NAME); return; } }
|
||||
#define LOAD_LIB_2( LIB, NAME ) { if (((LIB).load("./testrunner", "../cfg/" NAME).errorcode != Library::OK) && ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::OK)) { complainMissingLib(NAME); return; } }
|
||||
#else
|
||||
#define LOAD_LIB_2( LIB, NAME ) { if ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::ErrorCode::OK) { complainMissingLib(NAME); return; } }
|
||||
#define LOAD_LIB_2( LIB, NAME ) { if ((LIB).load("./testrunner", "cfg/" NAME).errorcode != Library::OK) { complainMissingLib(NAME); return; } }
|
||||
#endif
|
||||
#define LOAD_LIB( NAME ) { LOAD_LIB_2(_lib, NAME); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue