Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 13, 2009, 4:12:45 PM (15 years ago)
Author:
rgrieder
Message:

Small fixes.

Location:
code/branches/pch/src/orxonox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pch/src/orxonox/gui/GUIManager.cc

    r3143 r3153  
    271271        Returns false if the Overlay was already present.
    272272    */
    273     bool GUIManager::registerOverlay(std::string name, GUIOverlay* overlay)
     273    bool GUIManager::registerOverlay(const std::string& name, GUIOverlay* overlay)
    274274    {
    275275        return (this->guiOverlays_.insert(std::pair<std::string, GUIOverlay*>(name, overlay))).second;
     
    284284        Returns a pointer to the GUIOverlay.
    285285    */
    286     GUIOverlay* GUIManager::getOverlay(std::string name)
     286    GUIOverlay* GUIManager::getOverlay(const std::string& name)
    287287    {
    288288        return (this->guiOverlays_.find(name))->second;
  • code/branches/pch/src/orxonox/gui/GUIManager.h

    r3143 r3153  
    9191        void executeCode(const std::string& str);
    9292
    93         bool registerOverlay(std::string name, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager.
    94         GUIOverlay* getOverlay(std::string name); // Get the GUIOverlay of the GUI with the given name.
     93        bool registerOverlay(const std::string& name, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager.
     94        GUIOverlay* getOverlay(const std::string& name); // Get the GUIOverlay of the GUI with the given name.
    9595
    9696        void setCamera(Ogre::Camera* camera);
  • code/branches/pch/src/orxonox/tools/TextureGenerator.cc

    r3145 r3153  
    6565    unsigned int TextureGenerator::materialCount_s = 0;
    6666
    67     /*static*/ const std::string& TextureGenerator::getMaterialName(std::string textureName, const ColourValue& colour)
     67    /*static*/ const std::string& TextureGenerator::getMaterialName(const std::string& textureName, const ColourValue& colour)
    6868    {
    6969        std::map<ColourValue, std::string>& colourMap = materials_s[textureName];
  • code/branches/pch/src/orxonox/tools/TextureGenerator.h

    r3131 r3153  
    4646    {
    4747    public:
    48         static const std::string& getMaterialName(std::string textureName, const ColourValue& colour);
     48        static const std::string& getMaterialName(const std::string& textureName, const ColourValue& colour);
    4949
    5050    private:
Note: See TracChangeset for help on using the changeset viewer.