From a293cab198f51ca8920c3da1b671f51b26a9cb4a Mon Sep 17 00:00:00 2001 From: Frans Englich Date: Wed, 10 Jun 2009 14:36:58 +0200 Subject: Build fix for GCCE. I believe all auto tests for GCCE were previously failing because of this. Reviewed-by: Brad --- src/corelib/tools/qlist.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/corelib/tools/qlist.h b/src/corelib/tools/qlist.h index 89e082b..7540035 100644 --- a/src/corelib/tools/qlist.h +++ b/src/corelib/tools/qlist.h @@ -117,7 +117,14 @@ public: inline int size() const { return p.size(); } inline void detach() { if (d->ref != 1) detach_helper(); } - inline void detachShared() { if (d->ref != 1 && d != &QListData::shared_null) detach_helper(); } + + inline void detachShared() + { + // The "this->" qualification is needed for GCCE. + if (d->ref != 1 && this->d != &QListData::shared_null) + detach_helper(); + } + inline bool isDetached() const { return d->ref == 1; } inline void setSharable(bool sharable) { if (!sharable) detach(); d->sharable = sharable; } -- cgit v0.12