patrick
/
plasp
Archived
1
0
Fork 0

Added missing const directive.

This commit is contained in:
Patrick Lühne 2017-06-24 15:53:16 +02:00
parent d7e0beabdf
commit dd51f2b4fd
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ class VariableStack
void push(Layer layer);
void pop();
std::experimental::optional<ast::VariableDeclaration *> findVariableDeclaration(const std::string &variableName);
std::experimental::optional<ast::VariableDeclaration *> findVariableDeclaration(const std::string &variableName) const;
bool contains(const ast::VariableDeclaration &variableDeclaration) const;
private:

View File

@ -29,7 +29,7 @@ void VariableStack::pop()
////////////////////////////////////////////////////////////////////////////////////////////////////
std::experimental::optional<ast::VariableDeclaration *> VariableStack::findVariableDeclaration(const std::string &variableName)
std::experimental::optional<ast::VariableDeclaration *> VariableStack::findVariableDeclaration(const std::string &variableName) const
{
const auto variableDeclarationMatches =
[&variableName](const auto &variableDeclaration)