From c8d5497486c31e652d013d57604bb9955b0c322e Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 18 Aug 2009 15:05:55 +0200 Subject: [PATCH] TreeRelation: fix compilation failure with older GCCs Older GCCs do not allow scoping types for return value of functions. Explicitely typedef a longer name to fix this. --- include/TreeRelation.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/TreeRelation.h b/include/TreeRelation.h index f72224715..dd5118e52 100644 --- a/include/TreeRelation.h +++ b/include/TreeRelation.h @@ -44,6 +44,7 @@ class TreeRelation public: typedef TreeRelation ThisTreeRelation; typedef QList List; + typedef List TreeRelationList; TreeRelation( ThisTreeRelation * _parent = NULL, T * _item = NULL ) : m_parent( _parent ), @@ -140,12 +141,12 @@ public: children().removeAll( _it ); } - TreeRelation::List & children() + TreeRelationList & children() { return m_children; } - const TreeRelation::List & children() const + const TreeRelationList & children() const { return m_children; } @@ -215,7 +216,7 @@ private: TreeRelation( const ThisTreeRelation & ) { } ThisTreeRelation * m_parent; - TreeRelation::List m_children; + TreeRelationList m_children; bool m_temporaryMarker;