From 4709aa4babc16b2ec0536837012c33b460ed410c Mon Sep 17 00:00:00 2001 From: Jochen Nitschke Date: Tue, 4 Apr 2017 10:57:56 +0200 Subject: sc: remove redundant casts surprisingly GetDouble() already returns a double Change-Id: I1561f3d20e42531adad4d51b2d48ce92b126ffc2 Reviewed-on: https://gerrit.libreoffice.org/36068 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/core/tool/interpr4.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(); -- cgit