summaryrefslogtreecommitdiff
path: root/sal/rtl/math.cxx
diff options
context:
space:
mode:
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)