Build fix

pull/796/merge
scrawl 9 years ago
parent f875597be5
commit 42d68eb7fb

@ -93,7 +93,7 @@ void CSMWorld::CommandDispatcher::setEditLock (bool locked)
void CSMWorld::CommandDispatcher::setSelection (const std::vector<std::string>& selection)
{
mSelection = selection;
std::for_each (mSelection.begin(), mSelection.end(), Misc::StringUtils::toLower);
std::for_each (mSelection.begin(), mSelection.end(), Misc::StringUtils::toLowerStr);
std::sort (mSelection.begin(), mSelection.end());
}

@ -93,7 +93,7 @@ bool CSMWorld::ScriptContext::isId (const std::string& name) const
{
mIds = mData.getIds();
std::for_each (mIds.begin(), mIds.end(), &Misc::StringUtils::toLower);
std::for_each (mIds.begin(), mIds.end(), &Misc::StringUtils::toLowerStr);
std::sort (mIds.begin(), mIds.end());
mIdsUpdated = true;

@ -100,6 +100,11 @@ public:
return inout;
}
static std::string &toLowerStr(std::string &inout)
{
return toLower(inout);
}
/// Returns lower case copy of input string
static std::string lowerCase(const std::string &in)
{

Loading…
Cancel
Save