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

Commit 7e25da07 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

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

parent 0179ff65
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;