Cosmetics

This commit is contained in:
Birunthan Mohanathas 2012-06-27 15:37:23 +03:00
parent 3b8ab1e6e8
commit 1b9e1abcad

View File

@ -53,8 +53,26 @@ struct MeasureData
UINT updateCounter; UINT updateCounter;
bool download; bool download;
bool forceReload; bool forceReload;
MeasureData() :
skin(),
threadHandle(),
dlThreadHandle(),
codepage(),
stringIndex(),
stringIndex2(),
decodeCharacterReference(),
debug(),
updateRate(),
updateCounter(),
download(),
forceReload()
{
}
}; };
const int lol = sizeof(MeasureData);
BYTE* DownloadUrl(std::wstring& url, DWORD* dwSize, bool forceReload); BYTE* DownloadUrl(std::wstring& url, DWORD* dwSize, bool forceReload);
void ShowError(int lineNumber, WCHAR* errorMsg = NULL); void ShowError(int lineNumber, WCHAR* errorMsg = NULL);
unsigned __stdcall NetworkThreadProc(void* pParam); unsigned __stdcall NetworkThreadProc(void* pParam);
@ -560,9 +578,6 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
} }
measure->section = RmGetMeasureName(rm); measure->section = RmGetMeasureName(rm);
measure->decodeCharacterReference = 0;
measure->updateRate = 600;
measure->updateCounter = 0;
/* Read our own settings from the ini-file */ /* Read our own settings from the ini-file */
@ -595,9 +610,6 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
measure->debugFileLocation = RmReadPath(rm, L"Debug2File", L"C:\\WebParserDump.txt"); measure->debugFileLocation = RmReadPath(rm, L"Debug2File", L"C:\\WebParserDump.txt");
Log(LOG_DEBUG, measure->debugFileLocation.c_str()); Log(LOG_DEBUG, measure->debugFileLocation.c_str());
} }
measure->threadHandle = 0;
measure->dlThreadHandle = 0;
} }
PLUGIN_EXPORT double Update(void* data) PLUGIN_EXPORT double Update(void* data)