sc/source/core/tool/interpr2.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit a2729787d9bf29f9c5c05137fe016407ab596b92 Author: dante <dante19031...@gmail.com> AuthorDate: Wed May 5 21:08:01 2021 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Fri May 7 20:17:32 2021 +0200 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 <er...@redhat.com> 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); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits