Переглянути джерело

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

Source commit: ff9101a4e79520b1b43547336a48adb41386e44f
Martin Prikryl 9 роки тому
батько
коміт
cf9ff8d8e2
1 змінених файлів з 2 додано та 0 видалено
  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);