[Libreoffice-commits] core.git: jvmfwk/plugins

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 17 17:11:48 UTC 2019


 jvmfwk/plugins/sunmajor/pluginlib/util.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 41dee8c55275c458317ce711478ff00b9a976451
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Jun 17 15:47:12 2019 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
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 <sbergman at redhat.com>

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;


More information about the Libreoffice-commits mailing list