missing const

This commit is contained in:
LianaHus 2015-10-15 16:59:38 +02:00
parent 2348a4ef34
commit b2e787b803
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ bool NameAndTypeResolver::updateDeclaration(Declaration const& _declaration)
m_scopes[nullptr].registerDeclaration(_declaration, false, true); m_scopes[nullptr].registerDeclaration(_declaration, false, true);
solAssert(_declaration.scope() == nullptr, "Updated declaration outside global scope."); solAssert(_declaration.scope() == nullptr, "Updated declaration outside global scope.");
} }
catch(FatalError _error) catch(FatalError const& _error)
{ {
return false; return false;
} }

View File

@ -108,7 +108,7 @@ private:
// creates the Declaration error and adds it in the errors list // creates the Declaration error and adds it in the errors list
void reportTypeError(Error const& _e); void reportTypeError(Error const& _e);
// creates the Declaration error and adds it in the errors list and throws FatalError // creates the Declaration error and adds it in the errors list and throws FatalError
void reportFatalTypeError(const Error& _e); void reportFatalTypeError(Error const& _e);
DeclarationContainer* m_currentScope = nullptr; DeclarationContainer* m_currentScope = nullptr;
ErrorList& m_errors; ErrorList& m_errors;