Clean up constructors in the livestatus module

This commit is contained in:
Gunnar Beutner 2014-07-21 13:33:51 +02:00
parent 5dcf1a777b
commit 23986c9cf4
7 changed files with 14 additions and 28 deletions

View File

@ -22,10 +22,8 @@
using namespace icinga; using namespace icinga;
AvgAggregator::AvgAggregator(const String& attr) AvgAggregator::AvgAggregator(const String& attr)
: m_Avg(0), m_AvgCount(0) : m_Avg(0), m_AvgCount(0), m_AvgAttr(attr)
{ { }
m_AvgAttr = attr;
}
void AvgAggregator::Apply(const Table::Ptr& table, const Value& row) void AvgAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {

View File

@ -22,10 +22,8 @@
using namespace icinga; using namespace icinga;
InvAvgAggregator::InvAvgAggregator(const String& attr) InvAvgAggregator::InvAvgAggregator(const String& attr)
: m_InvAvg(0), m_InvAvgCount(0) : m_InvAvg(0), m_InvAvgCount(0), m_InvAvgAttr(attr)
{ { }
m_InvAvgAttr = attr;
}
void InvAvgAggregator::Apply(const Table::Ptr& table, const Value& row) void InvAvgAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {

View File

@ -22,10 +22,8 @@
using namespace icinga; using namespace icinga;
InvSumAggregator::InvSumAggregator(const String& attr) InvSumAggregator::InvSumAggregator(const String& attr)
: m_InvSum(0) : m_InvSum(0), m_InvSumAttr(attr)
{ { }
m_InvSumAttr = attr;
}
void InvSumAggregator::Apply(const Table::Ptr& table, const Value& row) void InvSumAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {

View File

@ -22,10 +22,8 @@
using namespace icinga; using namespace icinga;
MaxAggregator::MaxAggregator(const String& attr) MaxAggregator::MaxAggregator(const String& attr)
: m_Max(0) : m_Max(0), m_MaxAttr(attr)
{ { }
m_MaxAttr = attr;
}
void MaxAggregator::Apply(const Table::Ptr& table, const Value& row) void MaxAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {

View File

@ -22,10 +22,8 @@
using namespace icinga; using namespace icinga;
MinAggregator::MinAggregator(const String& attr) MinAggregator::MinAggregator(const String& attr)
: m_Min(0) : m_Min(0), m_MinAttr(attr)
{ { }
m_MinAttr = attr;
}
void MinAggregator::Apply(const Table::Ptr& table, const Value& row) void MinAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {

View File

@ -23,10 +23,8 @@
using namespace icinga; using namespace icinga;
StdAggregator::StdAggregator(const String& attr) StdAggregator::StdAggregator(const String& attr)
: m_StdSum(0), m_StdQSum(0), m_StdCount(0) : m_StdSum(0), m_StdQSum(0), m_StdCount(0), m_StdAttr(attr)
{ { }
m_StdAttr = attr;
}
void StdAggregator::Apply(const Table::Ptr& table, const Value& row) void StdAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {

View File

@ -22,10 +22,8 @@
using namespace icinga; using namespace icinga;
SumAggregator::SumAggregator(const String& attr) SumAggregator::SumAggregator(const String& attr)
: m_Sum(0) : m_Sum(0), m_SumAttr(attr)
{ { }
m_SumAttr = attr;
}
void SumAggregator::Apply(const Table::Ptr& table, const Value& row) void SumAggregator::Apply(const Table::Ptr& table, const Value& row)
{ {