blob: 1c49ab1214a2d8929e7346fda153378f8bae0b80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
From abaea74cc1ab0309bc7d68d7894c2d3a7609522e Mon Sep 17 00:00:00 2001
From: Paul Eggleton <paul.eggleton@linux.intel.com>
Date: Wed, 21 Aug 2013 21:13:39 +0100
Subject: [PATCH 1/2] tools: fix compilation failure with modern gcc
Need to use this-> with local methods.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
src/tools/qvaluestack.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tools/qvaluestack.h b/src/tools/qvaluestack.h
index 44f250f..926a269 100644
--- a/src/tools/qvaluestack.h
+++ b/src/tools/qvaluestack.h
@@ -49,12 +49,12 @@ class Q_EXPORT QValueStack : public QValueList<T>
public:
QValueStack() {}
~QValueStack() {}
- void push( const T& d ) { append(d); }
+ void push( const T& d ) { this->append(d); }
T pop()
{
T elem( this->last() );
if ( !this->isEmpty() )
- remove( this->fromLast() );
+ this->remove( this->fromLast() );
return elem;
}
T& top() { return this->last(); }
--
1.8.1.2
|