Skip to content

Commit

Permalink
ArduPilotPlugin: use std::move to get OnMessageWrapper callback
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Aug 12, 2024
1 parent bd8f974 commit b7f2af5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArduPilotPlugin.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,8 @@ class OnMessageWrapper
public: callback_t callback;

/// \brief Constructor
public: OnMessageWrapper(const callback_t &_callback)
: callback(_callback)
public: explicit OnMessageWrapper(callback_t _callback)
: callback(std::move(_callback))
{
}

Expand Down

0 comments on commit b7f2af5

Please sign in to comment.