diff --git a/ASTNode.cpp b/ASTNode.cpp index b93a405..6959d6a 100644 --- a/ASTNode.cpp +++ b/ASTNode.cpp @@ -11,7 +11,7 @@ void ASTNodeList::removeLast() void ASTNodeList::removeFirst() { - m_nodes.erase(m_nodes.begin()); + m_nodes.erase(m_nodes.cbegin()); } diff --git a/ASTree.cpp b/ASTree.cpp index c58b7be..0f8ca3b 100644 --- a/ASTree.cpp +++ b/ASTree.cpp @@ -34,7 +34,7 @@ static bool printClassDocstring = true; // shortcut for all top/pop calls static PycRef StackPopTop(FastStack& stack) { - const auto node(stack.top()); + const auto node{ stack.top() }; stack.pop(); return node; }