From a8c5edcea9f58a9295776c2a3f200111a5a749ab Mon Sep 17 00:00:00 2001 From: Arnaud Versini Date: Sun, 28 Aug 2016 15:16:15 +0200 Subject: BASIC: Devirtualize SbiExprNode::~SbiExprNode and make SbiExprNode final Change-Id: I95581265e2cc7befc00e67d42b6516d49c794680 Reviewed-on: https://gerrit.libreoffice.org/28438 Reviewed-by: Arnaud Versini Tested-by: Arnaud Versini --- basic/source/inc/expr.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'basic') diff --git a/basic/source/inc/expr.hxx b/basic/source/inc/expr.hxx index 8f17e8b0c8b7..748d6b26e400 100644 --- a/basic/source/inc/expr.hxx +++ b/basic/source/inc/expr.hxx @@ -87,7 +87,7 @@ enum RecursiveMode PREVENT_CALL }; -class SbiExprNode { // operators (and operands) +class SbiExprNode final { // operators (and operands) friend class SbiExpression; friend class SbiConstExpression; union { @@ -125,7 +125,7 @@ public: SbiExprNode( SbiExprNode*, SbiToken, SbiExprNode* ); SbiExprNode( SbiExprNode*, sal_uInt16 ); // #120061 TypeOf SbiExprNode( sal_uInt16 ); // new - virtual ~SbiExprNode(); + ~SbiExprNode(); bool IsValid() { return !bError; } bool IsConstant() // true: constant operand -- cgit