mirror of https://github.com/gnss-sdr/gnss-sdr
Pass msg by reference isntead of by value
This commit is contained in:
parent
5ef12c8244
commit
132f85079a
|
@ -810,7 +810,7 @@ private:
|
||||||
inline void write(const Rtcm_Message& msg)
|
inline void write(const Rtcm_Message& msg)
|
||||||
{
|
{
|
||||||
io_context_.post(
|
io_context_.post(
|
||||||
[this, msg]() {
|
[this, &msg]() {
|
||||||
bool write_in_progress = !write_msgs_.empty();
|
bool write_in_progress = !write_msgs_.empty();
|
||||||
write_msgs_.push_back(msg);
|
write_msgs_.push_back(msg);
|
||||||
if (!write_in_progress)
|
if (!write_in_progress)
|
||||||
|
|
Loading…
Reference in New Issue