mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 15:23:04 +00:00 
			
		
		
		
	Apply fixes by clang-tidy
This commit is contained in:
		| @@ -113,8 +113,7 @@ CustomUDPSignalSource::CustomUDPSignalSource(ConfigurationInterface* configurati | ||||
| } | ||||
|  | ||||
|  | ||||
| CustomUDPSignalSource::~CustomUDPSignalSource() | ||||
| = default; | ||||
| CustomUDPSignalSource::~CustomUDPSignalSource() = default; | ||||
|  | ||||
|  | ||||
| void CustomUDPSignalSource::connect(gr::top_block_sptr top_block) | ||||
|   | ||||
| @@ -69,7 +69,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration, | ||||
|  | ||||
|     if (item_type_ == "short") | ||||
|         { | ||||
|             item_size_ = sizeof(short); | ||||
|             item_size_ = sizeof(int16_t); | ||||
|         } | ||||
|     else if (item_type_ == "gr_complex") | ||||
|         { | ||||
| @@ -131,7 +131,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration, | ||||
|     else | ||||
|         { | ||||
|             LOG(WARNING) << item_type_ << " unrecognized item type. Using short."; | ||||
|             item_size_ = sizeof(short); | ||||
|             item_size_ = sizeof(int16_t); | ||||
|         } | ||||
|  | ||||
|     if (samples_ != 0) | ||||
| @@ -158,8 +158,7 @@ OsmosdrSignalSource::OsmosdrSignalSource(ConfigurationInterface* configuration, | ||||
| } | ||||
|  | ||||
|  | ||||
| OsmosdrSignalSource::~OsmosdrSignalSource() | ||||
| = default; | ||||
| OsmosdrSignalSource::~OsmosdrSignalSource() = default; | ||||
|  | ||||
|  | ||||
| void OsmosdrSignalSource::driver_instance() | ||||
|   | ||||
| @@ -37,6 +37,7 @@ | ||||
| #include <boost/shared_ptr.hpp> | ||||
| #include <gnuradio/blocks/file_sink.h> | ||||
| #include <gnuradio/msg_queue.h> | ||||
| #include <cstdint> | ||||
| #include <osmosdr/source.h> | ||||
| #include <stdexcept> | ||||
| #include <string> | ||||
| @@ -98,7 +99,7 @@ private: | ||||
|  | ||||
|     std::string item_type_; | ||||
|     size_t item_size_; | ||||
|     long samples_; | ||||
|     int64_t samples_; | ||||
|     bool dump_; | ||||
|     std::string dump_filename_; | ||||
|  | ||||
|   | ||||
| @@ -106,8 +106,7 @@ PlutosdrSignalSource::PlutosdrSignalSource(ConfigurationInterface* configuration | ||||
| } | ||||
|  | ||||
|  | ||||
| PlutosdrSignalSource::~PlutosdrSignalSource() | ||||
| = default; | ||||
| PlutosdrSignalSource::~PlutosdrSignalSource() = default; | ||||
|  | ||||
|  | ||||
| void PlutosdrSignalSource::connect(gr::top_block_sptr top_block) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez