From 1b9e1abcade211c9449984c67ad61e4b22692f94 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 27 Jun 2012 15:37:23 +0300 Subject: [PATCH] Cosmetics --- Plugins/PluginWebParser/WebParser.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/Plugins/PluginWebParser/WebParser.cpp b/Plugins/PluginWebParser/WebParser.cpp index cb70b428..68ccbfb7 100644 --- a/Plugins/PluginWebParser/WebParser.cpp +++ b/Plugins/PluginWebParser/WebParser.cpp @@ -53,8 +53,26 @@ struct MeasureData UINT updateCounter; bool download; 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); void ShowError(int lineNumber, WCHAR* errorMsg = NULL); unsigned __stdcall NetworkThreadProc(void* pParam); @@ -560,9 +578,6 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue) } measure->section = RmGetMeasureName(rm); - measure->decodeCharacterReference = 0; - measure->updateRate = 600; - measure->updateCounter = 0; /* 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"); Log(LOG_DEBUG, measure->debugFileLocation.c_str()); } - - measure->threadHandle = 0; - measure->dlThreadHandle = 0; } PLUGIN_EXPORT double Update(void* data)