diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-06-17 15:47:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-06-17 19:10:46 +0200 |
commit | 41dee8c55275c458317ce711478ff00b9a976451 (patch) | |
tree | a0bc90e785deef98593eea6f0932ea3409ad129b /jvmfwk | |
parent | d4714b0fdb81e6e561ae526cc517ecc9a40a603e (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'jvmfwk')
-rw-r--r-- | jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |