Skip to content

Commit

Permalink
pw_bluetooth_sapphire: Use explicit constructor for SmartTask
Browse files Browse the repository at this point in the history
Change-Id: Iccfc4d0080cfb7a32b51702f8890844de50ff534
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/182013
Reviewed-by: Ben Lawson <[email protected]>
Pigweed-Auto-Submit: Faraaz Sareshwala <[email protected]>
Commit-Queue: Auto-Submit <[email protected]>
  • Loading branch information
fsareshwala authored and CQ Bot Account committed Nov 21, 2023
1 parent 9e20465 commit 764ed8f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ namespace bt {
// should only be used on the same thread that the dispatcher is running on.
class SmartTask {
public:
SmartTask(pw::async::Dispatcher& dispatcher,
pw::async::TaskFunction&& func = nullptr)
explicit SmartTask(pw::async::Dispatcher& dispatcher,
pw::async::TaskFunction&& func = nullptr)
: dispatcher_(dispatcher), func_(std::move(func)) {}

~SmartTask() {
Expand Down

0 comments on commit 764ed8f

Please sign in to comment.