diff --git a/ASTNode.cpp b/ASTNode.cpp index 6959d6a..b93a405 100644 --- a/ASTNode.cpp +++ b/ASTNode.cpp @@ -11,7 +11,7 @@ void ASTNodeList::removeLast() void ASTNodeList::removeFirst() { - m_nodes.erase(m_nodes.cbegin()); + m_nodes.erase(m_nodes.begin()); } diff --git a/ASTree.cpp b/ASTree.cpp index 0f8ca3b..c58b7be 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; }