am 2d03a93e: Merge "Xcode 4.3 compatibility checkin"
* commit '2d03a93ecf00fb43272364293a21f88720884ce2': Xcode 4.3 compatibility checkin
This commit is contained in:
commit
3eeb21dc44
@ -122,7 +122,7 @@ ssize_t KeyedVector<KEY,VALUE>::indexOfKey(const KEY& key) const {
|
|||||||
|
|
||||||
template<typename KEY, typename VALUE> inline
|
template<typename KEY, typename VALUE> inline
|
||||||
const VALUE& KeyedVector<KEY,VALUE>::valueFor(const KEY& key) const {
|
const VALUE& KeyedVector<KEY,VALUE>::valueFor(const KEY& key) const {
|
||||||
ssize_t i = indexOfKey(key);
|
ssize_t i = this->indexOfKey(key);
|
||||||
assert(i>=0);
|
assert(i>=0);
|
||||||
return mVector.itemAt(i).value;
|
return mVector.itemAt(i).value;
|
||||||
}
|
}
|
||||||
@ -139,7 +139,7 @@ const KEY& KeyedVector<KEY,VALUE>::keyAt(size_t index) const {
|
|||||||
|
|
||||||
template<typename KEY, typename VALUE> inline
|
template<typename KEY, typename VALUE> inline
|
||||||
VALUE& KeyedVector<KEY,VALUE>::editValueFor(const KEY& key) {
|
VALUE& KeyedVector<KEY,VALUE>::editValueFor(const KEY& key) {
|
||||||
ssize_t i = indexOfKey(key);
|
ssize_t i = this->indexOfKey(key);
|
||||||
assert(i>=0);
|
assert(i>=0);
|
||||||
return mVector.editItemAt(i).value;
|
return mVector.editItemAt(i).value;
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ DefaultKeyedVector<KEY,VALUE>::DefaultKeyedVector(const VALUE& defValue)
|
|||||||
|
|
||||||
template<typename KEY, typename VALUE> inline
|
template<typename KEY, typename VALUE> inline
|
||||||
const VALUE& DefaultKeyedVector<KEY,VALUE>::valueFor(const KEY& key) const {
|
const VALUE& DefaultKeyedVector<KEY,VALUE>::valueFor(const KEY& key) const {
|
||||||
ssize_t i = indexOfKey(key);
|
ssize_t i = this->indexOfKey(key);
|
||||||
return i >= 0 ? KeyedVector<KEY,VALUE>::valueAt(i) : mDefault;
|
return i >= 0 ? KeyedVector<KEY,VALUE>::valueAt(i) : mDefault;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user