From 579c2b4dc12543f53cf3c885b4a8525cfe4a533d Mon Sep 17 00:00:00 2001 From: Al Sutton Date: Sun, 19 Feb 2012 08:31:19 +0000 Subject: [PATCH] Xcode 4.3 compatibility checkin The update compiler in Xcode 4.3 (and 4.4) requires lookups into dependant bases of class templates to be qualified. This checkin fixes the issues raised by the compiler by implementing the this-> recommendation from the llvm page at http://clang.llvm.org/compatibility.html#dep_lookup_bases Signed-off-by: Al Sutton --- include/utils/KeyedVector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/utils/KeyedVector.h b/include/utils/KeyedVector.h index 6bcdea4ff..65165a2c4 100644 --- a/include/utils/KeyedVector.h +++ b/include/utils/KeyedVector.h @@ -122,7 +122,7 @@ ssize_t KeyedVector::indexOfKey(const KEY& key) const { template inline const VALUE& KeyedVector::valueFor(const KEY& key) const { - ssize_t i = indexOfKey(key); + ssize_t i = this->indexOfKey(key); assert(i>=0); return mVector.itemAt(i).value; } @@ -139,7 +139,7 @@ const KEY& KeyedVector::keyAt(size_t index) const { template inline VALUE& KeyedVector::editValueFor(const KEY& key) { - ssize_t i = indexOfKey(key); + ssize_t i = this->indexOfKey(key); assert(i>=0); return mVector.editItemAt(i).value; } @@ -190,7 +190,7 @@ DefaultKeyedVector::DefaultKeyedVector(const VALUE& defValue) template inline const VALUE& DefaultKeyedVector::valueFor(const KEY& key) const { - ssize_t i = indexOfKey(key); + ssize_t i = this->indexOfKey(key); return i >= 0 ? KeyedVector::valueAt(i) : mDefault; }