diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-25 15:49:56 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-25 17:29:23 +0200 |
commit | 97200ca0822a22163d3f091241b9f1dfe24b7f86 (patch) | |
tree | fe2123ee6a5901a63cea6938d9c9b89fa3861b94 /basic | |
parent | 9d548868c62acd56fb1686281018a473028b5584 (diff) |
Use comphelper::IsContextFlagActive for flags from comphelper::NewFlagContext
Change-Id: Ib4a812dd115299d4251d863d0ee275d7acba1c5d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99443
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/exprtree.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx index cd6094db736b..bc9f4d5b3b94 100644 --- a/basic/source/comp/exprtree.cxx +++ b/basic/source/comp/exprtree.cxx @@ -22,8 +22,8 @@ #include <parser.hxx> #include <basic/sberrors.hxx> #include <basic/sbmod.hxx> +#include <comphelper/SetFlagContextHelper.hxx> #include <expr.hxx> -#include <uno/current_context.hxx> SbiExpression::SbiExpression( SbiParser* p, SbiExprType t, SbiExprMode eMode, const KeywordSymbolInfo* pKeywordSymbolInfo ) @@ -1042,10 +1042,7 @@ SbiExprListPtr SbiExprList::ParseParameters( SbiParser* pParser, bool bStandalon // tdf#106529: only fail here in strict mode (i.e. when compiled from IDE), and // allow legacy code with missing closing parenthesis when started e.g. from // extensions and event handlers - bool bCheckStrict = false; - if (auto xContext = css::uno::getCurrentContext()) - xContext->getValueByName("BasicStrict") >>= bCheckStrict; - if (bCheckStrict) + if (comphelper::IsContextFlagActive("BasicStrict")) { pParser->Error(ERRCODE_BASIC_EXPECTED, RPAREN); pExprList->bError = true; |