From 8367a8e0ab7de2874a7233ae81a84ffe5ca05485 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 12 Mar 2024 22:58:43 +0200 Subject: [PATCH] Return back a fix for Centos6/7 compilation issues not related to shadow ones --- ASTNode.cpp | 2 +- ASTree.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ASTNode.cpp b/ASTNode.cpp index 6959d6adc..b93a405ca 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 0f8ca3b5d..c58b7be0a 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; }