Workaround for GCC bug 51494

This commit is contained in:
Gunnar Beutner 2017-12-19 15:58:58 +01:00
parent 02dc3a9507
commit b63caaa756
4 changed files with 4 additions and 4 deletions

View File

@ -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));

View File

@ -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));

View File

@ -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));

View File

@ -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));