summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2016-01-14 20:52:15 +0100
committerEike Rathke <erack@redhat.com>2016-01-14 20:53:31 +0100
commitf19b4826c44e9e5f54b968fef59a3fcd3007d522 (patch)
tree1ac6b15e24eafa70b58ecd5dab83233413c0b487 /sal/rtl/math.cxx
parente6c9bdfdc181c95d5757b96b6194d639a0df3c79 (diff)
use ::std::swap() to reverse buffer
Change-Id: I7e18e57636416f0a3ed96c2fa3adc004fb3ba013
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r--sal/rtl/math.cxx4
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)