summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-13 14:33:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-21 09:14:45 +0200
commit841e1a6f3619054ecc9240e061cd83d4e41d1ca9 (patch)
tree2ee3989b2d3291c9b276205492d43369827ca3cf /tools
parent4354f0e9ef4a5538729a2a6f2d1745e247f6c5cd (diff)
remove some old MSVC workarounds
Change-Id: I6abd8aaffb27b3c85df7c0518f7f576be4e32222 Reviewed-on: https://gerrit.libreoffice.org/36660 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/datetime/tdate.cxx2
-rw-r--r--tools/source/generic/bigint.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx
index 0245de35c640..05a1e5a1d370 100644
--- a/tools/source/datetime/tdate.cxx
+++ b/tools/source/datetime/tdate.cxx
@@ -327,7 +327,7 @@ sal_uInt16 Date::GetDayOfYear() const
Normalize( nDay, nMonth, nYear);
for( sal_uInt16 i = 1; i < nMonth; i++ )
- nDay = nDay + ::ImplDaysInMonth( i, nYear ); // += yields a warning on MSVC, so don't use it
+ nDay += ::ImplDaysInMonth( i, nYear );
return nDay;
}
diff --git a/tools/source/generic/bigint.cxx b/tools/source/generic/bigint.cxx
index 41b00888d973..bef8de9f7a9e 100644
--- a/tools/source/generic/bigint.cxx
+++ b/tools/source/generic/bigint.cxx
@@ -349,7 +349,7 @@ void BigInt::DivLong( const BigInt& rB, BigInt& rErg ) const
nK = (sal_uInt16)(0x10000UL - nK);
}
unsigned short& rNum( aTmpA.nNum[j - nLenB + i] );
- rNum = rNum - nK; // MSVC yields a warning on -= here, so don't use it
+ rNum -= nK;
if (aTmpA.nNum[j - nLenB + i] == 0)
rErg.nNum[j - nLenB] = nQ;
else