From 030234c7a6c7f6c5a901dab68591c9cfb2d4828f Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Sat, 3 Sep 2016 13:28:55 -0700 Subject: [core] Rework invokeWithCallback so that the callback is last --- include/mbgl/util/run_loop.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/mbgl/util/run_loop.hpp') diff --git a/include/mbgl/util/run_loop.hpp b/include/mbgl/util/run_loop.hpp index af1053dfdc..6559b72ef8 100644 --- a/include/mbgl/util/run_loop.hpp +++ b/include/mbgl/util/run_loop.hpp @@ -61,10 +61,10 @@ public: } // Invoke fn(args...) on this RunLoop, then invoke callback(results...) on the current RunLoop. - template + template std::unique_ptr - invokeWithCallback(Fn&& fn, Cb&& callback, Args&&... args) { - std::shared_ptr task = WorkTask::makeWithCallback(std::forward(fn), std::forward(callback), std::forward(args)...); + invokeWithCallback(Fn&& fn, Args&&... args) { + std::shared_ptr task = WorkTask::makeWithCallback(std::forward(fn), std::forward(args)...); push(task); return std::make_unique(task); } -- cgit v1.2.1