[Libreoffice-commits] core.git: sc/source
Jochen Nitschke
j.nitschke+logerrit at ok.de
Wed Apr 5 07:02:57 UTC 2017
sc/source/core/tool/interpr4.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 4709aa4babc16b2ec0536837012c33b460ed410c
Author: Jochen Nitschke <j.nitschke+logerrit at 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 <ci at libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin at 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();
More information about the Libreoffice-commits
mailing list