Make PCB_EXPR_UCODE final

This avoids a warning about its non-virtual destructor during deletion, as
polymorphic classes are expected to be deleteable through any pointer.

Possibly not entirely correct -- might be problematic if UCODE objects are
deleted through a base pointer.
This commit is contained in:
Simon Richter 2020-07-21 10:19:08 +02:00 committed by Seth Hillbrand
parent 4153309fba
commit fdaaa0a704
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class BOARD_ITEM;
class PCB_EXPR_VAR_REF;
class PCB_EXPR_UCODE : public LIBEVAL::UCODE
class PCB_EXPR_UCODE final : public LIBEVAL::UCODE
{
public:
virtual LIBEVAL::VAR_REF* createVarRef( LIBEVAL::COMPILER *aCompiler,