summaryrefslogtreecommitdiffstats
path: root/basic
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2020-11-05 07:35:44 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2020-11-05 07:32:47 +0100
commit07339467ffce064ca507370d0b4294c2e0e8f4d4 (patch)
tree45708537d70ffa1a142126ca0d9d5b27a26d8d37 /basic
parentuse a utl::TempFile and clean it up after test (diff)
downloadcore-07339467ffce064ca507370d0b4294c2e0e8f4d4.tar.gz
core-07339467ffce064ca507370d0b4294c2e0e8f4d4.zip
Use LONG here
... since VarDecFromI4 WinAPI uses LONG [1]. Reverts commit 6436302f40252bc6619e304e2051115fee902e20 (partially) and commit 6436302f40252bc6619e304e2051115fee902e20. [1] https://docs.microsoft.com/en-us/windows/win32/api/oleauto/nf-oleauto-vardecfromi4 Change-Id: I5b0805b5b22bea0017b4b2f40400445ab587f2c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105226 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxdec.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxdec.cxx b/basic/source/sbx/sbxdec.cxx
index 1a7fb86b2a55..e47713445cf7 100644
--- a/basic/source/sbx/sbxdec.cxx
+++ b/basic/source/sbx/sbxdec.cxx
@@ -19,7 +19,6 @@
#include <o3tl/char16_t2wchar_t.hxx>
-#include <tools/long.hxx>
#include <basic/sberrors.hxx>
#include "sbxconv.hxx"
@@ -157,7 +156,7 @@ void SbxDecimal::setShort( sal_Int16 val )
void SbxDecimal::setLong( sal_Int32 val )
{
- VarDecFromI4( static_cast<tools::Long>(val), &maDec );
+ VarDecFromI4(static_cast<LONG>(val), &maDec);
}
void SbxDecimal::setUShort( sal_uInt16 val )