diff options
author | Eike Rathke <erack@redhat.com> | 2016-01-14 20:52:15 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-01-14 20:53:31 +0100 |
commit | f19b4826c44e9e5f54b968fef59a3fcd3007d522 (patch) | |
tree | 1ac6b15e24eafa70b58ecd5dab83233413c0b487 /sal | |
parent | e6c9bdfdc181c95d5757b96b6194d639a0df3c79 (diff) |
use ::std::swap() to reverse buffer
Change-Id: I7e18e57636416f0a3ed96c2fa3adc004fb3ba013
Diffstat (limited to 'sal')
-rw-r--r-- | sal/rtl/math.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index f193eedd6aff..63aa65710f2a 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -270,9 +270,7 @@ inline void doubleToString(StringT ** pResult, sal_Int32 n = (p - pBuf) / 2; for (sal_Int32 i=0; i < n; ++i) { - typename T::Char c = p[-i-1]; - p[-i-1] = pBuf[i]; - pBuf[i] = c; + ::std::swap( pBuf[i], p[-i-1]); } // Append decimals. if (nDecPlaces > 0) |