1. Cafu Engine
  2. Cafu Engine
  3. Cafu

Commits

Carsten Fuchs  committed 6c18b7e

Remove some unneeded `virtual` keywords.

Comments (0)

Files changed (4)

File Libs/GameSys/Entity.hpp Modified

View file
  • Ignore whitespace
  • Hide word diff
             /// @param Recursive   Whether to recursively copy all children as well.
             EntityT(const EntityT& Entity, bool Recursive=false);
 
-            /// The virtual destructor. Deletes this entity and all its children.
-            virtual ~EntityT();
+            /// The destructor. Destructs this entity and all its children.
+            ~EntityT();
 
 
             WorldT& GetWorld() const { return m_World; }
 
 
             // The TypeSys related declarations for this class.
-            virtual const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
+            const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
             static void* CreateInstance(const cf::TypeSys::CreateParamsT& Params);
             static const cf::TypeSys::TypeInfoT TypeInfo;
 

File Libs/GameSys/World.hpp Modified

View file
  • Ignore whitespace
  • Hide word diff
 
 
             // The TypeSys related declarations for this class.
-            /*virtual*/ const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
+            const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
             static void* CreateInstance(const cf::TypeSys::CreateParamsT& Params);
             static const cf::TypeSys::TypeInfoT TypeInfo;
 

File Libs/GuiSys/GuiImpl.hpp Modified

View file
  • Ignore whitespace
  • Hide word diff
 
 
             // The TypeSys related declarations for this class.
-            /*virtual*/ const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
+            const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
             static void* CreateInstance(const cf::TypeSys::CreateParamsT& Params);
             static const cf::TypeSys::TypeInfoT TypeInfo;
 

File Libs/GuiSys/Window.hpp Modified

View file
  • Ignore whitespace
  • Hide word diff
             /// @param Recursive   Whether to recursively copy all children.
             WindowT(const WindowT& Window, bool Recursive=false);
 
-            /// The virtual destructor. Deletes this window and all its children.
-            virtual ~WindowT();
+            /// The destructor. Destructs this window and all its children.
+            ~WindowT();
 
 
             GuiImplT& GetGui() const { return m_Gui; }
 
 
             // The TypeSys related declarations for this class.
-            virtual const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
+            const cf::TypeSys::TypeInfoT* GetType() const { return &TypeInfo; }
             static void* CreateInstance(const cf::TypeSys::CreateParamsT& Params);
             static const cf::TypeSys::TypeInfoT TypeInfo;