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

New commits:
commit 4709aa4babc16b2ec0536837012c33b460ed410c
Author: Jochen Nitschke <j.nitschke+loger...@ok.de>
Date:   Tue Apr 4 10:57:56 2017 +0200

    sc: remove redundant casts
    
    surprisingly GetDouble() already returns a double
    
    Change-Id: I1561f3d20e42531adad4d51b2d48ce92b126ffc2
    Reviewed-on: https://gerrit.libreoffice.org/36068
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 976f163a5e67..6380ffdf6d1f 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -2723,7 +2723,7 @@ void ScInterpreter::ScExternal()
                     break;
 
                 case SC_ADDINARG_DOUBLE:
-                    aParam <<= (double) GetDouble();
+                    aParam <<= GetDouble();
                     break;
 
                 case SC_ADDINARG_STRING:
@@ -2835,7 +2835,7 @@ void ScInterpreter::ScExternal()
                             {
                                 uno::Any aElem;
                                 if ( nStackType == svDouble )
-                                    aElem <<= (double) GetDouble();
+                                    aElem <<= GetDouble();
                                 else if ( nStackType == svString )
                                     aElem <<= GetString().getString();
                                 else
@@ -2881,7 +2881,7 @@ void ScInterpreter::ScExternal()
                     switch( nStackType )
                     {
                         case svDouble:
-                            aParam <<= (double) GetDouble();
+                            aParam <<= GetDouble();
                             break;
                         case svString:
                             aParam <<= GetString().getString();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to