jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 41dee8c55275c458317ce711478ff00b9a976451 Author: Stephan Bergmann <[email protected]> AuthorDate: Mon Jun 17 15:47:12 2019 +0200 Commit: Stephan Bergmann <[email protected]> CommitDate: Mon Jun 17 19:10:46 2019 +0200 simplify code ...following up on b70ab9e9e5630a965c5e6cc40c2480dddf1e2384 "Fix swapping of vector elements" Change-Id: Ib67b43345fa808bc25dff5aff11b387bb3455464 Reviewed-on: https://gerrit.libreoffice.org/74173 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx index f45a796dcad7..d8238120b04c 100644 --- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx +++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx @@ -731,7 +731,7 @@ void bubbleSortVersion(vector<rtl::Reference<VendorBase> >& vec) } if(nCmp == 1) // cur > next { - std::swap(vec.at(j-1), vec.at(j)); + std::swap(cur, next); } } ++cIter; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
