瀏覽代碼

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);