mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 20:53:52 +00:00
Build fix
This commit is contained in:
parent
f875597be5
commit
42d68eb7fb
3 changed files with 7 additions and 2 deletions
|
@ -93,7 +93,7 @@ void CSMWorld::CommandDispatcher::setEditLock (bool locked)
|
||||||
void CSMWorld::CommandDispatcher::setSelection (const std::vector<std::string>& selection)
|
void CSMWorld::CommandDispatcher::setSelection (const std::vector<std::string>& selection)
|
||||||
{
|
{
|
||||||
mSelection = 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());
|
std::sort (mSelection.begin(), mSelection.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ bool CSMWorld::ScriptContext::isId (const std::string& name) const
|
||||||
{
|
{
|
||||||
mIds = mData.getIds();
|
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());
|
std::sort (mIds.begin(), mIds.end());
|
||||||
|
|
||||||
mIdsUpdated = true;
|
mIdsUpdated = true;
|
||||||
|
|
|
@ -100,6 +100,11 @@ public:
|
||||||
return inout;
|
return inout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static std::string &toLowerStr(std::string &inout)
|
||||||
|
{
|
||||||
|
return toLower(inout);
|
||||||
|
}
|
||||||
|
|
||||||
/// Returns lower case copy of input string
|
/// Returns lower case copy of input string
|
||||||
static std::string lowerCase(const std::string &in)
|
static std::string lowerCase(const std::string &in)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue