[Libreoffice-commits] core.git: sc/inc

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Oct 10 14:37:04 UTC 2017


 sc/inc/address.hxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 02ff84dca24793a54c0fd5ce783550900eb0cd27
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Aug 26 21:42:25 2017 +0200

    use std::swap instead of own implementation
    
    Change-Id: Iabc0eee868a2ad5623a1ac39b26bb2bc5981e829
    Reviewed-on: https://gerrit.libreoffice.org/43249
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 193c85934b07..0c4610d98474 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -922,10 +922,7 @@ template< typename T > void PutInOrder( T& nStart, T& nEnd )
 {
     if (nEnd < nStart)
     {
-        T nTemp;
-        nTemp = nEnd;
-        nEnd = nStart;
-        nStart = nTemp;
+        std::swap(nStart, nEnd);
     }
 }
 


More information about the Libreoffice-commits mailing list