sc/source/core/inc/interpre.hxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
New commits: commit 278cfa9b3042eefe921ee85531f1bbf485a4a76f Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Mon Aug 12 12:54:25 2024 +0200 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Mon Aug 12 15:01:38 2024 +0200 Simplify a bit Change-Id: Iff0e31d1f8a9bab30e10164b974622395993b203 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171767 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index 954fe092d39a..1630e8c6b794 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -1161,12 +1161,9 @@ inline bool ScInterpreter::MustHaveParamCount( short nAct, short nMust ) inline bool ScInterpreter::MustHaveParamCount( short nAct, short nMust, short nMax ) { - if ( nMust <= nAct && nAct <= nMax ) - return true; - if ( nAct < nMust ) - PushParameterExpected(); - else - PushIllegalParameter(); + if (nAct <= nMax) + return MustHaveParamCountMin(nAct, nMust); + PushIllegalParameter(); return false; }