summaryrefslogtreecommitdiffstats
path: root/sc/inc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-26 21:42:25 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-10-10 16:36:41 +0200
commit02ff84dca24793a54c0fd5ce783550900eb0cd27 (patch)
tree366fed6351e8964f5cda88f7b128f2caa37804b1 /sc/inc
parentiOS, update app to link (diff)
downloadcore-02ff84dca24793a54c0fd5ce783550900eb0cd27.tar.gz
core-02ff84dca24793a54c0fd5ce783550900eb0cd27.zip
use std::swap instead of own implementation
Change-Id: Iabc0eee868a2ad5623a1ac39b26bb2bc5981e829 Reviewed-on: https://gerrit.libreoffice.org/43249 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/address.hxx5
1 files changed, 1 insertions, 4 deletions
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);
}
}