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:
parent
4153309fba
commit
fdaaa0a704
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue