diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-11-15 13:19:24 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-11-15 13:19:24 +0100 |
commit | 1f2d0c83d07b2c877722069c0075ba35860a0400 (patch) | |
tree | 38c0b6e2b19a16bae0f952969a049ae458eddeec | |
parent | 8a993919377f0b602b7db88d1de6696b21a11cbf (diff) |
Put back a method needed by Windows and reformat a bit
-rw-r--r-- | basic/inc/basic/sbxvar.hxx | 1 | ||||
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/basic/inc/basic/sbxvar.hxx b/basic/inc/basic/sbxvar.hxx index 485c33e7f796..08e80026ae37 100644 --- a/basic/inc/basic/sbxvar.hxx +++ b/basic/inc/basic/sbxvar.hxx @@ -212,6 +212,7 @@ public: // Special methods sal_Bool PutDecimal( com::sun::star::bridge::oleautomation::Decimal& rAutomationDec ); + sal_Bool PutDecimal( SbxDecimal* pDecimal ); // This function is needed for Windows build, don't remove sal_Bool fillAutomationDecimal( com::sun::star::bridge::oleautomation::Decimal& rAutomationDec ); sal_Bool PutCurrency( const sal_Int64& ); // Interface for CDbl in Basic diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx index f279374df2ba..f6173182fac0 100644 --- a/basic/source/sbx/sbxvalue.cxx +++ b/basic/source/sbx/sbxvalue.cxx @@ -755,21 +755,21 @@ sal_Bool SbxValue::PutString( const ::rtl::OUString& r ) sal_Bool SbxValue::p( t n ) \ { SbxValues aRes(e); aRes.m = n; Put( aRes ); return sal_Bool( !IsError() ); } -PUT( PutByte, SbxBYTE, sal_uInt8, nByte ) +PUT( PutByte, SbxBYTE, sal_uInt8, nByte ) PUT( PutChar, SbxCHAR, sal_Unicode, nChar ) PUT( PutCurrency, SbxCURRENCY, const sal_Int64&, nInt64 ) PUT( PutDate, SbxDATE, double, nDouble ) PUT( PutDouble, SbxDOUBLE, double, nDouble ) -PUT( PutErr, SbxERROR, sal_uInt16, nUShort ) -PUT( PutInteger, SbxINTEGER, sal_Int16, nInteger ) -PUT( PutLong, SbxLONG, sal_Int32, nLong ) +PUT( PutErr, SbxERROR, sal_uInt16, nUShort ) +PUT( PutInteger, SbxINTEGER, sal_Int16, nInteger ) +PUT( PutLong, SbxLONG, sal_Int32, nLong ) PUT( PutObject, SbxOBJECT, SbxBase*, pObj ) PUT( PutSingle, SbxSINGLE, float, nSingle ) -PUT( PutULong, SbxULONG, sal_uInt32, nULong ) -PUT( PutUShort, SbxUSHORT, sal_uInt16, nUShort ) +PUT( PutULong, SbxULONG, sal_uInt32, nULong ) +PUT( PutUShort, SbxUSHORT, sal_uInt16, nUShort ) PUT( PutInt64, SbxSALINT64, sal_Int64, nInt64 ) PUT( PutUInt64, SbxSALUINT64, sal_uInt64, uInt64 ) - +PUT( PutDecimal, SbxDECIMAL, SbxDecimal*, pDecimal ) ////////////////////////// Setting of the data type /////////////////////////// |