summaryrefslogtreecommitdiffstats
path: root/include/utils/KeyedVector.h
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-04-10 20:27:25 -0700
committerMathias Agopian <mathias@google.com>2009-04-10 20:27:25 -0700
commit2b2fb1a69394edd58666b89597c560442ccc3a90 (patch)
treebe95e4f2a92c0127480ca98e352d6742b78fd3a7 /include/utils/KeyedVector.h
parent0308739d0beef940588bf8bb693b91d0c2936d67 (diff)
downloadframeworks_native-2b2fb1a69394edd58666b89597c560442ccc3a90.zip
frameworks_native-2b2fb1a69394edd58666b89597c560442ccc3a90.tar.gz
frameworks_native-2b2fb1a69394edd58666b89597c560442ccc3a90.tar.bz2
fix KeyedVector::replaceValueAt, which wouldn't even compile if used.
Diffstat (limited to 'include/utils/KeyedVector.h')
-rw-r--r--include/utils/KeyedVector.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/utils/KeyedVector.h b/include/utils/KeyedVector.h
index f4513ee..6bcdea4 100644
--- a/include/utils/KeyedVector.h
+++ b/include/utils/KeyedVector.h
@@ -164,7 +164,7 @@ ssize_t KeyedVector<KEY,VALUE>::replaceValueFor(const KEY& key, const VALUE& val
template<typename KEY, typename VALUE> inline
ssize_t KeyedVector<KEY,VALUE>::replaceValueAt(size_t index, const VALUE& item) {
if (index<size()) {
- mVector.editValueAt(index).value = item;
+ mVector.editItemAt(index).value = item;
return index;
}
return BAD_INDEX;