[Libreoffice-commits] .: basic/source

Tor Lillqvist tml at kemper.freedesktop.org
Wed Dec 22 05:05:49 PST 2010


 basic/source/sbx/sbxdec.cxx |   24 ------------------------
 1 file changed, 24 deletions(-)

New commits:
commit d4d58ec813642e1e783b6318d5f8a31bc37f91dd
Author: Noel Power <noel.power at novell.com>
Date:   Wed Dec 22 15:03:47 2010 +0200

    Fix compilation error on Windows

diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index fa4b502..d53c529 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -705,7 +705,6 @@ start:
             double d;
             if( !pDec->getDouble( d ) )
                 SbxBase::SetError( SbxERR_OVERFLOW );
-            pDec->getDouble( d );
             *p->pnInt64 = ImpDoubleToCurrency( d );
             break;
         case SbxBYREF | SbxSALINT64:
@@ -732,7 +731,6 @@ start:
                 SbxBase::SetError( SbxERR_OVERFLOW ); 
                 *p->pSingle = 0;
             }
-            *p->pSingle = (float) n;
             break;
         case SbxBYREF | SbxDATE:
         case SbxBYREF | SbxDOUBLE:
@@ -742,28 +740,6 @@ start:
                 *p->pDouble = 0;
             }
             break;
-        case SbxBYREF | SbxULONG64:
-        {
-            double d;
-            pDec->getDouble( d );
-            *p->pULong64 = ImpDoubleToUINT64( d );
-            break;
-        }
-        case SbxBYREF | SbxLONG64:
-        {
-            double d;
-            pDec->getDouble( d );
-            *p->pLong64 = ImpDoubleToINT64( d );
-            break;
-        }
-        case SbxBYREF | SbxCURRENCY:
-        {
-            double d;
-            pDec->getDouble( d );
-            *p->pLong64 = ImpDoubleToCurrency( d );
-            break;
-        }
-
         default:
             SbxBase::SetError( SbxERR_CONVERSION );
     }


More information about the Libreoffice-commits mailing list