diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-08-26 21:42:25 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-10-10 16:36:41 +0200 |
commit | 02ff84dca24793a54c0fd5ce783550900eb0cd27 (patch) | |
tree | 366fed6351e8964f5cda88f7b128f2caa37804b1 /sc | |
parent | da01a190a19bdb737b39c41f75f0bc3d3da36417 (diff) |
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')
-rw-r--r-- | sc/inc/address.hxx | 5 |
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); } } |