diff options
Diffstat (limited to 'sc/inc')
-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); } } |