Просмотр исходного кода

COMP: cmProcessTools::OutputParser virtual dtor

This class has virtual methods and therefore should have a virtual
destructor.
Brad King 17 лет назад
Родитель
Сommit
5a7ac0def1
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      Source/cmProcessTools.h

+ 2 - 0
Source/cmProcessTools.h

@@ -35,6 +35,8 @@ public:
         in any more data and false if it is done.  */
     bool Process(const char* data, int length)
       { return this->ProcessChunk(data, length); }
+
+    virtual ~OutputParser() {}
   protected:
     /** Implement in a subclass to process a chunk of data.  It should
         return true only if it is interested in more data.  */