Преглед на файлове

handle missing virtual destructors
clang translation: destructinplace needs to know what to erase.

AzaezelX преди 1 година
родител
ревизия
a58f98167f
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      Engine/source/T3D/gameBase/moveManager.h
  2. 1 1
      Engine/source/gfx/video/theoraTexture.h

+ 1 - 1
Engine/source/T3D/gameBase/moveManager.h

@@ -57,7 +57,7 @@ struct Move
    bool trigger[MaxTriggerKeys];
 
    Move();
-
+   virtual ~Move() {};
    virtual void pack(BitStream *stream, const Move * move = NULL);
    virtual void unpack(BitStream *stream, const Move * move = NULL);
    virtual void clamp();

+ 1 - 1
Engine/source/gfx/video/theoraTexture.h

@@ -263,7 +263,7 @@ class TheoraTexture : private IOutputStream< TheoraTextureFrame* >,
             
             ///
             AsyncState( const ThreadSafeRef< OggInputStream >& oggStream, bool looping = false );
-            
+            virtual ~AsyncState() {};
             /// Return the Theora decoder substream.
             OggTheoraDecoder* getTheora() const { return mTheoraDecoder; }