Return back a fix for Centos6/7 compilation issues not related to shadow ones

This commit is contained in:
Alex
2024-03-12 22:58:43 +02:00
parent fd80a359c7
commit 8367a8e0ab
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.cbegin()); m_nodes.erase(m_nodes.begin());
} }

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;
} }