소스 검색

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