summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/source/graphicfilter/icgm/cgm.cxx2
-rw-r--r--sal/osl/unx/file.cxx2
-rw-r--r--sal/osl/w32/file.cxx2
3 files changed, 1 insertions, 5 deletions
diff --git a/filter/source/graphicfilter/icgm/cgm.cxx b/filter/source/graphicfilter/icgm/cgm.cxx
index 8023fa72a963..3dd2ccceebed 100644
--- a/filter/source/graphicfilter/icgm/cgm.cxx
+++ b/filter/source/graphicfilter/icgm/cgm.cxx
@@ -266,7 +266,7 @@ double CGM::ImplGetFloat( RealPrecision eRealPrecision, sal_uInt32 nRealSize )
nRetValue += (double)nVal;
if ( pLong[ nSwitch ] < 0 )
{
- nRetValue -= nRetValue;
+ nRetValue = -nRetValue;
}
nRetValue /= 65536;
}
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 1d8ab6c34b6a..3a5dac5f9741 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -1257,8 +1257,6 @@ SAL_CALL osl_mapFile (
if (nSize > 0)
{
c^= pData[0];
- pData += nSize;
- nSize = 0;
}
}
}
diff --git a/sal/osl/w32/file.cxx b/sal/osl/w32/file.cxx
index 341947fd6eec..70bca8b78ac3 100644
--- a/sal/osl/w32/file.cxx
+++ b/sal/osl/w32/file.cxx
@@ -876,8 +876,6 @@ SAL_CALL osl_mapFile(
if (nSize > 0)
{
c ^= pData[0];
- pData += nSize;
- nSize -= nSize;
}
}
return osl_File_E_None;