Cosmetics (removed commented out test code)

This commit is contained in:
Brian Ferguson 2014-04-21 14:11:53 -06:00
parent 21fe43be63
commit ce18e1796b

View File

@ -999,7 +999,6 @@ void ParseData(MeasureData* measure, LPCSTR parseData, DWORD dwSize)
for ( ; i != g_Measures.end(); ++i) for ( ; i != g_Measures.end(); ++i)
{ {
if (measure->skin == (*i)->skin && if (measure->skin == (*i)->skin &&
//(*i)->url.find(compareStr) != std::wstring::npos)
StringUtil::CaseInsensitiveFind((*i)->url, compareStr) != std::wstring::npos) StringUtil::CaseInsensitiveFind((*i)->url, compareStr) != std::wstring::npos)
{ {
if ((*i)->stringIndex < rc) if ((*i)->stringIndex < rc)
@ -1025,7 +1024,6 @@ void ParseData(MeasureData* measure, LPCSTR parseData, DWORD dwSize)
(*i)->resultString = (*i)->url; (*i)->resultString = (*i)->url;
(*i)->resultString.replace( (*i)->resultString.replace(
StringUtil::CaseInsensitiveFind((*i)->resultString, compareStr), StringUtil::CaseInsensitiveFind((*i)->resultString, compareStr),
//(*i)->resultString.find(compareStr),
compareStr.size(), result); compareStr.size(), result);
DecodeReferences((*i)->resultString, (*i)->decodeCharacterReference); DecodeReferences((*i)->resultString, (*i)->decodeCharacterReference);
@ -1084,7 +1082,8 @@ void ParseData(MeasureData* measure, LPCSTR parseData, DWORD dwSize)
compareStr += L']'; compareStr += L']';
for ( ; i != g_Measures.end(); ++i) for ( ; i != g_Measures.end(); ++i)
{ {
if ((/*(*i)->url.find(compareStr)*/StringUtil::CaseInsensitiveFind((*i)->url, compareStr) != std::wstring::npos) && (measure->skin == (*i)->skin)) if ((StringUtil::CaseInsensitiveFind((*i)->url, compareStr) != std::wstring::npos) &&
(measure->skin == (*i)->skin))
{ {
(*i)->resultString = (*i)->errorString; (*i)->resultString = (*i)->errorString;
} }