diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2020-03-09 11:53:50 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-04-02 12:57:57 +0200 |
commit | 84b884135ee419fe7abfefa7b4b651a649cf9ad9 (patch) | |
tree | a5ba5d8e81d832c30099e7fe76764a48caf43f4e /basic/source/inc | |
parent | 0ec042dd2488989e7a9c45309b408ec8b8326208 (diff) |
tdf#79426, tdf#125180 - Don't convert missing parameters to requested type
If a particular parameter type is requested during the
construction of a parameter list, don't convert missing
parameters to avoid implicit casting to the specified
data type and value of the method.
Missing parameters are handled in StepEMPTY, where
additional information about missing parameters is added.
Change-Id: Ia413b2996d7d1feecedc1dfefaf6baf0fd9d917e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90215
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic/source/inc')
-rw-r--r-- | basic/source/inc/runtime.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx index 1b0a3309367d..3b59a5b18341 100644 --- a/basic/source/inc/runtime.hxx +++ b/basic/source/inc/runtime.hxx @@ -348,6 +348,11 @@ public: sal_Int32 nLine,nCol1,nCol2; SbiRuntime* pNext; // Stack-Chain + // tdf#79426, tdf#125180 - adds the information about a missing parameter + static void SetIsMissing( SbxVariable* ); + // tdf#79426, tdf#125180 - checks if a variable contains the information about a missing parameter + static bool IsMissing( SbxVariable*, sal_uInt16 ); + SbiRuntime( SbModule*, SbMethod*, sal_uInt32 ); ~SbiRuntime(); void Error( ErrCode, bool bVBATranslationAlreadyDone = false ); // set error if != 0 |