diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-07 23:06:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-08 10:14:21 +0100 |
commit | fc51789ad0eafc41460e67773d11609d366fc4b7 (patch) | |
tree | 61ced1e90edd0e59294157d4dacea75b59a5313e /sal/rtl/math.cxx | |
parent | 07b51bc2830e6035c29894e30006b61489c6fa4f (diff) |
Solaris C++ 5.2 compiler is no longer relevant
Change-Id: I520a58438e156661d3e01a899e97ee33d9f19102
Diffstat (limited to 'sal/rtl/math.cxx')
-rw-r--r-- | sal/rtl/math.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sal/rtl/math.cxx b/sal/rtl/math.cxx index 95df8205db65..4d0ecb199b61 100644 --- a/sal/rtl/math.cxx +++ b/sal/rtl/math.cxx @@ -171,10 +171,8 @@ bool isRepresentableInteger(double fAbsValue) return false; } -// Solaris C++ 5.2 compiler has problems when "StringT ** pResult" is -// "typename T::String ** pResult" instead: -template< typename T, typename StringT > -inline void doubleToString(StringT ** pResult, +template< typename T > +inline void doubleToString(typename T::String ** pResult, sal_Int32 * pResultCapacity, sal_Int32 nResultOffset, double fValue, rtl_math_StringFormat eFormat, sal_Int32 nDecPlaces, typename T::Char cDecSeparator, @@ -628,7 +626,7 @@ void SAL_CALL rtl_math_doubleToString(rtl_String ** pResult, sal_Bool bEraseTrailingDecZeros) SAL_THROW_EXTERN_C() { - doubleToString< StringTraits, StringTraits::String >( + doubleToString< StringTraits >( pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces, cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros); } @@ -644,7 +642,7 @@ void SAL_CALL rtl_math_doubleToUString(rtl_uString ** pResult, sal_Bool bEraseTrailingDecZeros) SAL_THROW_EXTERN_C() { - doubleToString< UStringTraits, UStringTraits::String >( + doubleToString< UStringTraits >( pResult, pResultCapacity, nResultOffset, fValue, eFormat, nDecPlaces, cDecSeparator, pGroups, cGroupSeparator, bEraseTrailingDecZeros); } |