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:
parent
7c628c1239
commit
ef2f968473
@ -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];
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user