Mark a lot of functions const (where possible)

This commit is contained in:
Alex Beregszaszi
2017-08-22 10:51:46 +01:00
parent c94b1f8173
commit e2cfc9ee92
18 changed files with 41 additions and 41 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ Scope::Identifier* Scope::lookup(string const& _name)
return nullptr;
}
bool Scope::exists(string const& _name)
bool Scope::exists(string const& _name) const
{
if (identifiers.count(_name))
return true;