Revert "Fix for Centos6/7 compilation issues"

This reverts commit f80b662f77.
This commit is contained in:
Alex
2024-03-12 22:38:03 +02:00
parent ce439a67bb
commit 68a697dfc1
2 changed files with 2 additions and 2 deletions

View File

@@ -11,7 +11,7 @@ void ASTNodeList::removeLast()
void ASTNodeList::removeFirst() void ASTNodeList::removeFirst()
{ {
m_nodes.erase(m_nodes.begin()); m_nodes.erase(m_nodes.cbegin());
} }

View File

@@ -34,7 +34,7 @@ static bool printClassDocstring = true;
// shortcut for all top/pop calls // shortcut for all top/pop calls
static PycRef<ASTNode> StackPopTop(FastStack& stack) static PycRef<ASTNode> StackPopTop(FastStack& stack)
{ {
const auto node(stack.top()); const auto node{ stack.top() };
stack.pop(); stack.pop();
return node; return node;
} }