From 73ccbd21dbe535dce2c5bad61257f2c1c0d6c715 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 15 Aug 2012 21:17:57 +0300 Subject: [PATCH] Minor fixes --- Library/ConfigParser.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Library/ConfigParser.cpp b/Library/ConfigParser.cpp index ae073e20..cbbe46b6 100644 --- a/Library/ConfigParser.cpp +++ b/Library/ConfigParser.cpp @@ -40,7 +40,8 @@ CConfigParser::CConfigParser() : m_LastReplaced(false), m_LastDefaultUsed(false), m_LastValueDefined(false), - m_CurrentSection() + m_CurrentSection(), + m_MeterWindow() { } @@ -54,6 +55,8 @@ CConfigParser::~CConfigParser() void CConfigParser::Initialize(const std::wstring& filename, CMeterWindow* meterWindow, LPCTSTR skinSection, const std::wstring* resourcePath) { + m_MeterWindow = meterWindow; + m_Measures.clear(); m_Sections.clear(); m_Values.clear(); @@ -81,8 +84,6 @@ void CConfigParser::Initialize(const std::wstring& filename, CMeterWindow* meter m_FoundSections.clear(); m_ListVariables.clear(); m_SectionInsertPos = m_Sections.end(); - - m_MeterWindow = meterWindow; } void CConfigParser::SetBuiltInVariables(const std::wstring& filename, const std::wstring* resourcePath, CMeterWindow* meterWindow)