From 68a697dfc1326969fe1a8cf4d7c4d538c0124197 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 12 Mar 2024 22:38:03 +0200 Subject: [PATCH] Revert "Fix for Centos6/7 compilation issues" This reverts commit f80b662f774e245d1834e64f45ecabea6d346ca8. --- ASTNode.cpp | 2 +- ASTree.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }