mirror-chatterino2/lambdaqrunnable.cpp

13 lines
177 B
C++
Raw Normal View History

2017-01-03 21:19:33 +01:00
#include "lambdaqrunnable.h"
2017-01-11 18:52:09 +01:00
LambdaQRunnable::LambdaQRunnable(std::function<void()> action)
2017-01-03 21:19:33 +01:00
{
this->action = action;
}
2017-01-11 18:52:09 +01:00
void
LambdaQRunnable::run()
2017-01-03 21:19:33 +01:00
{
2017-01-18 04:33:30 +01:00
this->action();
2017-01-03 21:19:33 +01:00
}