]> granicus.if.org Git - icinga2/commitdiff
Timer::TimerThreadProc(): use C++11 lambda instead of bind() 7004/head
authorAlexander A. Klimov <alexander.klimov@icinga.com>
Mon, 11 Mar 2019 10:17:26 +0000 (11:17 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 24 Apr 2019 09:51:17 +0000 (11:51 +0200)
refs #6737

lib/base/timer.cpp

index ff00e79aa0c492d73b9f3eb6455118806e9e6e56..07a4f30de413acb662773768afca60d3d53c169f 100644 (file)
@@ -310,6 +310,6 @@ void Timer::TimerThreadProc()
                lock.unlock();
 
                /* Asynchronously call the timer. */
-               Utility::QueueAsyncCallback(std::bind(&Timer::Call, timer));
+               Utility::QueueAsyncCallback([timer]() { timer->Call(); });
        }
 }