From 6d9563ef0071a2823306371b6b8b378685f5a264 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Sun, 10 Feb 2019 13:24:25 +0100 Subject: [PATCH] Improvement by clang-tidy --- src/core/receiver/gnss_block_factory.cc | 2 +- src/core/receiver/gnss_block_factory.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/receiver/gnss_block_factory.cc b/src/core/receiver/gnss_block_factory.cc index fd8d0f09f..ac0bb8aad 100644 --- a/src/core/receiver/gnss_block_factory.cc +++ b/src/core/receiver/gnss_block_factory.cc @@ -182,7 +182,7 @@ GNSSBlockFactory::~GNSSBlockFactory() = default; std::unique_ptr GNSSBlockFactory::GetSignalSource( - const std::shared_ptr& configuration, gr::msg_queue::sptr queue, int ID) + const std::shared_ptr& configuration, const gr::msg_queue::sptr& queue, int ID) { std::string default_implementation = "File_Signal_Source"; std::string role = "SignalSource"; //backwards compatibility for old conf files diff --git a/src/core/receiver/gnss_block_factory.h b/src/core/receiver/gnss_block_factory.h index 8ead87090..e3eb02226 100644 --- a/src/core/receiver/gnss_block_factory.h +++ b/src/core/receiver/gnss_block_factory.h @@ -58,7 +58,7 @@ public: GNSSBlockFactory(); virtual ~GNSSBlockFactory(); std::unique_ptr GetSignalSource(const std::shared_ptr& configuration, - gr::msg_queue::sptr queue, int ID = -1); + const gr::msg_queue::sptr& queue, int ID = -1); std::unique_ptr GetSignalConditioner(const std::shared_ptr& configuration, int ID = -1);