Changed: Replace NLMISC::strupr by NLMISC::toUpper

--HG--
branch : develop
This commit is contained in:
kervala 2015-12-17 14:36:33 +01:00
parent 613150e5bc
commit 80581347a4
2 changed files with 2 additions and 3 deletions

View file

@ -971,8 +971,7 @@ uint32 AISHEETS::CSheets::getGroupPropertiesIndex(const std::string &groupIndexN
if (groupIndexName.empty()) if (groupIndexName.empty())
return std::numeric_limits<uint32>::max(); return std::numeric_limits<uint32>::max();
NLMISC::strupr(groupIndexName); std::map<string, uint32>::iterator it = _NameToGroupIndex.find(NLMISC::toUpper(groupIndexName));
std::map<string, uint32>::iterator it = _NameToGroupIndex.find(groupIndexName);
if (it==_NameToGroupIndex.end()) if (it==_NameToGroupIndex.end())
{ {
uint32 groupIndex = (uint32)_NameToGroupIndex.size(); uint32 groupIndex = (uint32)_NameToGroupIndex.size();

View file

@ -703,7 +703,7 @@ public:
IAIActionCPtr lookupAction (NLMISC::CSheetId const& id); IAIActionCPtr lookupAction (NLMISC::CSheetId const& id);
IRaceStatsCPtr lookupRaceStats (NLMISC::CSheetId const& id); IRaceStatsCPtr lookupRaceStats (NLMISC::CSheetId const& id);
uint32 getGroupPropertiesIndex(std::string groupIndexName); uint32 getGroupPropertiesIndex(const std::string &groupIndexName);
uint32 playerGroupIndex() { return _PlayerGroupIndex; } uint32 playerGroupIndex() { return _PlayerGroupIndex; }