Fixed compilation problem (missing string include), changed

parameter of getColour to be a string reference only.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-05-29 23:53:36 +00:00
parent 7c628c1239
commit ef2f968473
2 changed files with 4 additions and 2 deletions

View File

@ -700,7 +700,7 @@ void Skin::drawProgress(Widget* w, const core::rect< s32 > &rect, const bool pre
}
}
SColor Skin::getColor(const std::string name)
SColor Skin::getColor(const std::string &name)
{
return SkinConfig::m_colors[name];
}

View File

@ -19,6 +19,8 @@
#ifndef HEADER_SKIN_HPP
#define HEADER_SKIN_HPP
#include <string>
#include <rect.h>
#include <SColor.h>
#include <vector2d.h>
@ -337,7 +339,7 @@ namespace GUIEngine
irr::video::ITexture* getImage(const char* name);
static irr::video::SColor getColor(const std::string name);
static irr::video::SColor getColor(const std::string &name);
};
}