From 0d88721d772fd995a39cc2417a2a0dabee403b7d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Thu, 2 May 2019 18:44:32 +0200 Subject: qmake: use std names on a linked list This is preparation of moving from QLinkedList to std::list, which is in preparation of deprecating QLinkedList. Change-Id: Ief259bc8c7178be5ca04812c6890cf65d86c069d Reviewed-by: Joerg Bornemann --- qmake/library/qmakeevaluator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qmake/library/qmakeevaluator.h') diff --git a/qmake/library/qmakeevaluator.h b/qmake/library/qmakeevaluator.h index f617681cbb..2aebb825ea 100644 --- a/qmake/library/qmakeevaluator.h +++ b/qmake/library/qmakeevaluator.h @@ -99,10 +99,10 @@ public: class QMAKE_EXPORT ProValueMapStack : public QLinkedList { public: - inline void push(const ProValueMap &t) { append(t); } - inline ProValueMap pop() { return takeLast(); } - ProValueMap &top() { return last(); } - const ProValueMap &top() const { return last(); } + inline void push(const ProValueMap &t) { push_back(t); } + inline ProValueMap pop() { auto r = std::move(back()); pop_back(); return r; } + ProValueMap &top() { return back(); } + const ProValueMap &top() const { return back(); } }; namespace QMakeInternal { struct QMakeBuiltin; } -- cgit v1.2.3