Skip to content

Commit

Permalink
msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSylvester committed Jan 9, 2025
1 parent bada477 commit 1773cd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/mbgl/actor/scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ class Scheduler {
/// the given closure to this scheduler, the consequent calls of the
/// returned closure are ignored.
///
/// If this scheduler is already deleted by the time the returnded closure
/// If this scheduler is already deleted by the time the returned closure
/// is first invoked, the call is ignored.
Scheduler::Task bindOnce(Task);
Scheduler::Task bindOnce(Task&&);

/// Enqueues the given |task| for execution into this scheduler's task queue
/// and then enqueues the |reply| with the captured task result to the
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/actor/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace mbgl {

Scheduler::Task Scheduler::bindOnce(Scheduler::Task fn) {
Scheduler::Task Scheduler::bindOnce(Scheduler::Task&& fn) {
assert(fn);
return [scheduler = makeWeakPtr(), scheduled = std::move(fn)]() mutable {
if (!scheduled) return; // Repeated call.
Expand Down

0 comments on commit 1773cd4

Please sign in to comment.