Loading libutils/VectorImpl.cpp +4 −1 Original line number Original line Diff line number Diff line Loading @@ -198,7 +198,10 @@ status_t VectorImpl::sort(VectorImpl::compar_r_t cmp, void* state) _do_copy(next, curr, 1); _do_copy(next, curr, 1); next = curr; next = curr; --j; --j; curr = NULL; if (j >= 0) { curr = reinterpret_cast<char*>(array) + mItemSize*(j); curr = reinterpret_cast<char*>(array) + mItemSize*(j); } } while (j>=0 && (cmp(curr, temp, state) > 0)); } while (j>=0 && (cmp(curr, temp, state) > 0)); _do_destroy(next, 1); _do_destroy(next, 1); Loading Loading
libutils/VectorImpl.cpp +4 −1 Original line number Original line Diff line number Diff line Loading @@ -198,7 +198,10 @@ status_t VectorImpl::sort(VectorImpl::compar_r_t cmp, void* state) _do_copy(next, curr, 1); _do_copy(next, curr, 1); next = curr; next = curr; --j; --j; curr = NULL; if (j >= 0) { curr = reinterpret_cast<char*>(array) + mItemSize*(j); curr = reinterpret_cast<char*>(array) + mItemSize*(j); } } while (j>=0 && (cmp(curr, temp, state) > 0)); } while (j>=0 && (cmp(curr, temp, state) > 0)); _do_destroy(next, 1); _do_destroy(next, 1); Loading