From 60dd46ee18f98e4fc8ca0faa478911bfedf9ae13 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Tue, 27 Feb 2024 14:18:34 +0600 Subject: Simplify a bit Change-Id: Id9640825e117531ed1b67db9e83349c556f291c7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164004 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- basic/source/comp/exprnode.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') diff --git a/basic/source/comp/exprnode.cxx b/basic/source/comp/exprnode.cxx index ade1d5832ba1..d6733e96d1ee 100644 --- a/basic/source/comp/exprnode.cxx +++ b/basic/source/comp/exprnode.cxx @@ -118,7 +118,7 @@ SbiExprNode::~SbiExprNode() SbiSymDef* SbiExprNode::GetVar() { - if( eNodeType == SbxVARVAL ) + if (IsVariable()) return aVar.pDef; else return nullptr; @@ -136,7 +136,7 @@ SbiSymDef* SbiExprNode::GetRealVar() // From 1995-12-18 SbiExprNode* SbiExprNode::GetRealNode() { - if( eNodeType == SbxVARVAL ) + if (IsVariable()) { SbiExprNode* p = this; while( p->aVar.pNext ) -- cgit