Fix uninitialized field in the CheckerComponent class

This commit is contained in:
Gunnar Beutner 2015-03-03 09:14:15 +01:00
parent ac7a55cf56
commit 274e6e9785
2 changed files with 6 additions and 2 deletions

View File

@ -59,6 +59,10 @@ void CheckerComponent::StatsFunc(const Dictionary::Ptr& status, const Array::Ptr
status->Set("checkercomponent", nodes);
}
CheckerComponent::CheckerComponent(void)
: m_Stopped(false)
{ }
void CheckerComponent::OnConfigLoaded(void)
{
DynamicObject::OnStarted.connect(bind(&CheckerComponent::ObjectHandler, this, _1));
@ -73,8 +77,6 @@ void CheckerComponent::Start(void)
{
DynamicObject::Start();
m_Stopped = false;
m_Thread = boost::thread(boost::bind(&CheckerComponent::CheckThreadProc, this));
m_ResultTimer = new Timer();

View File

@ -68,6 +68,8 @@ public:
>
> CheckableSet;
CheckerComponent(void);
virtual void OnConfigLoaded(void);
virtual void Start(void);
virtual void Stop(void);