Explorar o código

TCustomCommand needs an explicit virtual destructor, as is has virtual methods and we destroy it polymorphically in TCustomScpExplorerForm::CustomCommand

Source commit: ff9101a4e79520b1b43547336a48adb41386e44f
Martin Prikryl %!s(int64=9) %!d(string=hai) anos
pai
achega
cf9ff8d8e2
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      source/core/FileMasks.h

+ 2 - 0
source/core/FileMasks.h

@@ -135,6 +135,8 @@ friend class TInteractiveCustomCommand;
 
 public:
   TCustomCommand();
+  // Needs an explicit virtual destructor, as is has virtual methods
+  virtual ~TCustomCommand() {}
 
   UnicodeString __fastcall Complete(const UnicodeString & Command, bool LastPass);
   virtual void __fastcall Validate(const UnicodeString & Command);