use ToLower() instead of calling std::transform explicitly all the time

This commit is contained in:
unK
2008-09-29 00:11:00 +02:00
parent dbe0480db5
commit 0a210a8896
6 changed files with 34 additions and 27 deletions

View File

@@ -2945,13 +2945,13 @@ int main(int argc, char *argv[])
timer = time(NULL);
if (findme.empty())
continue;
transform(findme.begin(), findme.end(), findme.begin(), tolower);
ToLower(findme);
ShowMessage("Searching...");
for (int i = (wCurrent == mSearcher ? search_engine_static_options-1 : 0); i < wCurrent->Size(); i++)
{
string name = Window::OmitBBCodes(wCurrent->GetOption(i));
transform(name.begin(), name.end(), name.begin(), tolower);
ToLower(name);
if (name.find(findme) != string::npos && !wCurrent->IsStatic(i))
{
vFoundPositions.push_back(i);