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

New commits:
commit 02ff84dca24793a54c0fd5ce783550900eb0cd27
Author: Markus Mohrhard <markus.mohrh...@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 <c...@libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrh...@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);
     }
 }
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to