Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3178 for code/branches


Ignore:
Timestamp:
Jun 15, 2009, 1:43:16 PM (15 years ago)
Author:
rgrieder
Message:

Build fix for Visual Studio 2005: Removed const qualifiers in GametypeInfo.
The problem is a compiler bug with template type deduction and const member functions.
I have made a post in the forum: https://forum.orxonox.net/viewtopic.php?f=6&t=352

Location:
code/branches/pch/src/orxonox/objects/infos
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/objects/infos/GametypeInfo.cc

    r3177 r3178  
    6868    }
    6969
    70     void GametypeInfo::sendAnnounceMessage(const std::string& message) const
     70    void GametypeInfo::sendAnnounceMessage(const std::string& message)
    7171    {
    7272        if (GameMode::isMaster())
     
    7777    }
    7878
    79     void GametypeInfo::sendAnnounceMessage(const std::string& message, unsigned int clientID) const
     79    void GametypeInfo::sendAnnounceMessage(const std::string& message, unsigned int clientID)
    8080    {
    8181        if (GameMode::isMaster())
     
    8888    }
    8989
    90     void GametypeInfo::sendKillMessage(const std::string& message, unsigned int clientID) const
     90    void GametypeInfo::sendKillMessage(const std::string& message, unsigned int clientID)
    9191    {
    9292        if (GameMode::isMaster())
     
    9999    }
    100100
    101     void GametypeInfo::sendDeathMessage(const std::string& message, unsigned int clientID) const
     101    void GametypeInfo::sendDeathMessage(const std::string& message, unsigned int clientID)
    102102    {
    103103        if (GameMode::isMaster())
     
    110110    }
    111111
    112     void GametypeInfo::dispatchAnnounceMessage(const std::string& message) const
     112    void GametypeInfo::dispatchAnnounceMessage(const std::string& message)
    113113    {
    114114        for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)
     
    116116    }
    117117
    118     void GametypeInfo::dispatchKillMessage(const std::string& message) const
     118    void GametypeInfo::dispatchKillMessage(const std::string& message)
    119119    {
    120120        for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)
     
    122122    }
    123123
    124     void GametypeInfo::dispatchDeathMessage(const std::string& message) const
     124    void GametypeInfo::dispatchDeathMessage(const std::string& message)
    125125    {
    126126        for (ObjectList<GametypeMessageListener>::iterator it = ObjectList<GametypeMessageListener>::begin(); it != ObjectList<GametypeMessageListener>::end(); ++it)
  • code/branches/pch/src/orxonox/objects/infos/GametypeInfo.h

    r3099 r3178  
    5959                { return this->hudtemplate_; }
    6060
    61             void sendAnnounceMessage(const std::string& message) const;
    62             void sendAnnounceMessage(const std::string& message, unsigned int clientID) const;
    63             void sendKillMessage(const std::string& message, unsigned int clientID) const;
    64             void sendDeathMessage(const std::string& message, unsigned int clientID) const;
     61            void sendAnnounceMessage(const std::string& message);
     62            void sendAnnounceMessage(const std::string& message, unsigned int clientID);
     63            void sendKillMessage(const std::string& message, unsigned int clientID);
     64            void sendDeathMessage(const std::string& message, unsigned int clientID);
    6565
    66             void dispatchAnnounceMessage(const std::string& message) const;
    67             void dispatchKillMessage(const std::string& message) const;
    68             void dispatchDeathMessage(const std::string& message) const;
     66            void dispatchAnnounceMessage(const std::string& message);
     67            void dispatchKillMessage(const std::string& message);
     68            void dispatchDeathMessage(const std::string& message);
    6969
    7070        private:
Note: See TracChangeset for help on using the changeset viewer.