From 08fd513e715209a1295de2e65cbdb47108908826 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 20 Mar 2012 20:35:23 +0000 Subject: callcatcher: update list --- sc/source/filter/oox/biffhelper.cxx | 39 ------------------------------------- 1 file changed, 39 deletions(-) (limited to 'sc/source/filter/oox/biffhelper.cxx') diff --git a/sc/source/filter/oox/biffhelper.cxx b/sc/source/filter/oox/biffhelper.cxx index 9ec1a9864a57..da426b606ad8 100644 --- a/sc/source/filter/oox/biffhelper.cxx +++ b/sc/source/filter/oox/biffhelper.cxx @@ -69,45 +69,6 @@ union DecodedDouble inline explicit DecodedDouble( double fValue ) : mfValue( fValue ) {} }; -bool lclCalcRkFromDouble( sal_Int32& ornRkValue, const DecodedDouble& rDecDbl ) -{ - // double - if( (rDecDbl.maStruct.w32_parts.lsw == 0) && ((rDecDbl.maStruct.w32_parts.msw & 0x3) == 0) ) - { - ornRkValue = static_cast< sal_Int32 >( rDecDbl.maStruct.w32_parts.msw ); - return true; - } - - // integer - double fInt = 0.0; - double fFrac = modf( rDecDbl.mfValue, &fInt ); - if( (fFrac == 0.0) && (-536870912.0 <= fInt) && (fInt <= 536870911.0) ) // 2^29 - { - ornRkValue = static_cast< sal_Int32 >( fInt ); - ornRkValue <<= 2; - ornRkValue |= BIFF_RK_INTFLAG; - return true; - } - - return false; -} - -bool lclCalcRkFromDouble( sal_Int32& ornRkValue, double fValue ) -{ - DecodedDouble aDecDbl( fValue ); - if( lclCalcRkFromDouble( ornRkValue, aDecDbl ) ) - return true; - - aDecDbl.mfValue *= 100.0; - if( lclCalcRkFromDouble( ornRkValue, aDecDbl ) ) - { - ornRkValue |= BIFF_RK_100FLAG; - return true; - } - - return false; -} - // ---------------------------------------------------------------------------- void lclImportImgDataDib( StreamDataSequence& orDataSeq, BiffInputStream& rStrm, sal_Int32 nBytes, BiffType eBiff ) -- cgit