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/network/Client.h

    r10817 r10845  
    7676    static Client* getInstance(){ return singletonPtr_s; } // tolua_export
    7777
    78     bool establishConnection() override;
     78    virtual bool establishConnection() override;
    7979    void setDestination( const std::string& serverAddress, unsigned int port ); // tolua_export
    80     bool closeConnection() override;
    81     void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) override;
     80    virtual bool closeConnection() override;
     81    virtual void queuePacket(ENetPacket* packet, int clientID, uint8_t channelID) override;
    8282    virtual bool sendPacket( packet::Packet* packet ) override{ return packet->send( static_cast<Host*>(this) ); }
    8383    virtual void doSendChat(const std::string& message, unsigned int sourceID, unsigned int targetID) override;
     
    9191    Client(const Client& copy); // not used
    9292    virtual bool isServer_() override{return false;}
    93     void processPacket(packet::Packet* packet) override;
     93    virtual void processPacket(packet::Packet* packet) override;
    9494
    9595    static Client* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.