Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 23, 2015, 10:20:29 PM (9 years ago)
Author:
landauf
Message:

always use 'virtual' in the declaration of virtual functions even if they are inherited

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/cpp11_v2/src/libraries/core/input/InputDevice.h

    r10821 r10845  
    153153
    154154        //! Captures OIS events (which then get distributed to the derived class) and creates the button held events
    155         void update(const Clock& time) override
     155        virtual void update(const Clock& time) override
    156156        {
    157157            oisDevice_->capture();
     
    171171
    172172        //! Clears the list of pressed buttons and calls the derived class's method
    173         void clearBuffers() override
     173        virtual void clearBuffers() override
    174174        {
    175175            pressedButtons_.clear();
     
    180180        OISDeviceClass* getOISDevice()   { return this->oisDevice_; }
    181181        // Returns the name of the derived class as string
    182         std::string getClassName() const override { return DeviceClass::getClassNameImpl(); }
     182        virtual std::string getClassName() const override { return DeviceClass::getClassNameImpl(); }
    183183
    184184    protected:
Note: See TracChangeset for help on using the changeset viewer.