[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - jvmfwk/plugins
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 11 17:33:10 UTC 2019
jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit eaee30b8ef7649d09ae64c484efa4d4026c2f119
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 7 22:06:46 2019 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Jun 11 19:32:21 2019 +0200
Fix swapping of vector elements
...which had been broken with edc85fb55f8adc30a1416c6c854c89097060fb21
"clang-tidy performance-unnecessary-copy-init in idl..reportdesign" (and could
cause "Tools - Options... - LibreOffice - Advanced - Java Options" to
erroneously list a single JRE multiple times, instead of listing different
JREs).
Change-Id: I6799903be39a5c6aa601131fad6eab3edea8d9e4
Reviewed-on: https://gerrit.libreoffice.org/73679
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
(cherry picked from commit b70ab9e9e5630a965c5e6cc40c2480dddf1e2384)
Reviewed-on: https://gerrit.libreoffice.org/73802
Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index 6b1147b149b2..4a634b329f2c 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -733,8 +733,7 @@ void bubbleSortVersion(vector<rtl::Reference<VendorBase> >& vec)
}
if(nCmp == 1) // cur > next
{
- vec.at(j-1)= cur;
- vec.at(j)= next;
+ std::swap(vec.at(j-1), vec.at(j));
}
}
++cIter;
More information about the Libreoffice-commits
mailing list