summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/math.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx
index 6de4d30383cd..b36aef117136 100644
--- a/sal/rtl/math.cxx
+++ b/sal/rtl/math.cxx
@@ -388,11 +388,7 @@ void doubleToString(typename T::String ** pResult,
*p++ = '-';
// Reverse buffer content.
- sal_Int32 n = (p - pBuf) / 2;
- for (sal_Int32 i=0; i < n; ++i)
- {
- ::std::swap( pBuf[i], p[-i-1]);
- }
+ std::reverse(pBuf, p);
// Append decimals.
if (nDecPlaces > 0)