Kaydet (Commit) 787d98f3 authored tarafından Michael Stahl's avatar Michael Stahl

xmloff: remove yet another SunStudio workaround

Change-Id: Ic9ec167d921c4c5f08914476bdbdd6a31a9391c1
üst ef7b63ba
...@@ -20,8 +20,6 @@ ...@@ -20,8 +20,6 @@
#include <xmloff/ProgressBarHelper.hxx> #include <xmloff/ProgressBarHelper.hxx>
#include <xmloff/xmltoken.hxx> #include <xmloff/xmltoken.hxx>
#include <stdlib.h>
using namespace ::com::sun::star; using namespace ::com::sun::star;
static const sal_Int32 nDefaultProgressBarRange = 1000000; static const sal_Int32 nDefaultProgressBarRange = 1000000;
...@@ -52,12 +50,7 @@ sal_Int32 ProgressBarHelper::ChangeReference(sal_Int32 nNewReference) ...@@ -52,12 +50,7 @@ sal_Int32 ProgressBarHelper::ChangeReference(sal_Int32 nNewReference)
{ {
double fPercent(nNewReference / nReference); double fPercent(nNewReference / nReference);
double fValue(nValue * fPercent); double fValue(nValue * fPercent);
#if OSL_DEBUG_LEVEL > 0 nValue = static_cast<sal_Int32>(fValue);
// workaround for toolchain bug on solaris/x86 Sun C++ 5.5
// just call some function here
(void) abs(nValue);
#endif
nValue = static_cast< sal_Int32 >(fValue);
nReference = nNewReference; nReference = nNewReference;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment