mirror of https://github.com/Icinga/icinga2.git
Workaround for GCC bug 51494
This commit is contained in:
parent
02dc3a9507
commit
b63caaa756
|
@ -99,7 +99,7 @@ void Comment::Start(bool runtimeCreated)
|
|||
|
||||
static boost::once_flag once = BOOST_ONCE_INIT;
|
||||
|
||||
boost::call_once(once, []() {
|
||||
boost::call_once(once, [this]() {
|
||||
l_CommentsExpireTimer = new Timer();
|
||||
l_CommentsExpireTimer->SetInterval(60);
|
||||
l_CommentsExpireTimer->OnTimerExpired.connect(std::bind(&Comment::CommentsExpireTimerHandler));
|
||||
|
|
|
@ -103,7 +103,7 @@ void Downtime::Start(bool runtimeCreated)
|
|||
|
||||
static boost::once_flag once = BOOST_ONCE_INIT;
|
||||
|
||||
boost::call_once(once, []() {
|
||||
boost::call_once(once, [this]() {
|
||||
l_DowntimesStartTimer = new Timer();
|
||||
l_DowntimesStartTimer->SetInterval(5);
|
||||
l_DowntimesStartTimer->OnTimerExpired.connect(std::bind(&Downtime::DowntimesStartTimerHandler));
|
||||
|
|
|
@ -91,7 +91,7 @@ void ScheduledDowntime::Start(bool runtimeCreated)
|
|||
|
||||
static boost::once_flag once = BOOST_ONCE_INIT;
|
||||
|
||||
boost::call_once(once, []() {
|
||||
boost::call_once(once, [this]() {
|
||||
l_Timer = new Timer();
|
||||
l_Timer->SetInterval(60);
|
||||
l_Timer->OnTimerExpired.connect(std::bind(&ScheduledDowntime::TimerProc));
|
||||
|
|
|
@ -40,7 +40,7 @@ void TimePeriod::Start(bool runtimeCreated)
|
|||
|
||||
static boost::once_flag once = BOOST_ONCE_INIT;
|
||||
|
||||
boost::call_once(once, []() {
|
||||
boost::call_once(once, [this]() {
|
||||
l_UpdateTimer = new Timer();
|
||||
l_UpdateTimer->SetInterval(300);
|
||||
l_UpdateTimer->OnTimerExpired.connect(std::bind(&TimePeriod::UpdateTimerHandler));
|
||||
|
|
Loading…
Reference in New Issue