[Libreoffice-commits] core.git: sc/source

dante (via logerrit) logerrit at kemper.freedesktop.org
Fri May 7 18:18:16 UTC 2021


 sc/source/core/tool/interpr2.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a2729787d9bf29f9c5c05137fe016407ab596b92
Author:     dante <dante19031999 at gmail.com>
AuthorDate: Wed May 5 21:08:01 2021 +0200
Commit:     Eike Rathke <erack at 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 <erack at 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);
 }


More information about the Libreoffice-commits mailing list