Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf89aa42 authored by Mathias Agopian's avatar Mathias Agopian Committed by Alex Ray
Browse files

fix KeyedVector::replaceValueAt, which wouldn't even compile if used.

parent 6b35f970
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;