From 41dee8c55275c458317ce711478ff00b9a976451 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 17 Jun 2019 15:47:12 +0200 Subject: 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 --- jvmfwk/plugins/sunmajor/pluginlib/util.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jvmfwk') 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 >& vec) } if(nCmp == 1) // cur > next { - std::swap(vec.at(j-1), vec.at(j)); + std::swap(cur, next); } } ++cIter; -- cgit