summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authordante <dante19031999@gmail.com>2021-05-05 21:08:01 +0200
committerEike Rathke <erack@redhat.com>2021-05-07 20:17:32 +0200
commita2729787d9bf29f9c5c05137fe016407ab596b92 (patch)
treef3256c902db4d720778ef0173de8ceca1398f8c3 /sc/source/core
parent59d96acec8c4d9e472daa3e2c287b3a754e01817 (diff)
Use prefix increase operators in ScInterpreter::ScOdd
Change-Id: Ic1542e2667f7683cf222ab6794b348de396e6c20 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115157 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/interpr2.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index a57d0b81789f..8f2e4ed9a257 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -248,7 +248,7 @@ void ScInterpreter::ScGetWeekOfYear()
if ( !MustHaveParamCount( nParamCount, 1, 2 ) )
return;
- sal_Int16 nFlag = nParamCount == 1 ? 1 : GetInt16();
+ sal_Int16 nFlag = ( nParamCount == 1 ) ? 1 : GetInt16();
Date aDate = pFormatter->GetNullDate();
aDate.AddDays( GetInt32());
@@ -1219,13 +1219,13 @@ void ScInterpreter::ScOdd()
{
fVal = ::rtl::math::approxCeil(fVal);
if (fmod(fVal, 2.0) == 0.0)
- fVal ++;
+ ++fVal;
}
else
{
fVal = ::rtl::math::approxFloor(fVal);
if (fmod(fVal, 2.0) == 0.0)
- fVal --;
+ --fVal;
}
PushDouble(fVal);
}