Fix error active state

pull/1/head
michal.szwaj 2018-03-15 18:34:19 +01:00
parent 175dfa6b60
commit 2ba44d220e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ const char* Error::what() const noexcept
bool Error::operator!() const
{
return code_ != ErrorCode::NONE || nativeCode_ != 0;
return code_ == ErrorCode::NONE;
}
bool Error::operator==(const Error& other) const