mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Cosmetics (removed commented out test code)
This commit is contained in:
parent
21fe43be63
commit
ce18e1796b
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user