[Libreoffice-commits] core.git: basic/source
Mike Kaganski (via logerrit)
logerrit at kemper.freedesktop.org
Thu Nov 5 06:33:29 UTC 2020
basic/source/sbx/sbxdec.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 07339467ffce064ca507370d0b4294c2e0e8f4d4
Author: Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Thu Nov 5 07:35:44 2020 +0200
Commit: Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Thu Nov 5 07:32:47 2020 +0100
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 at collabora.com>
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 )
More information about the Libreoffice-commits
mailing list