mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-31 07:13:03 +00:00 
			
		
		
		
	Do not use move when it is not needed
This commit is contained in:
		| @@ -126,7 +126,7 @@ Gnss_Satellite& Gnss_Satellite::operator=(const Gnss_Satellite& rhs) | ||||
| // Move constructor | ||||
| Gnss_Satellite::Gnss_Satellite(const Gnss_Satellite& other) | ||||
| { | ||||
|     *this = std::move(other); | ||||
|     *this = other; | ||||
| } | ||||
|  | ||||
|  | ||||
| @@ -137,9 +137,9 @@ Gnss_Satellite& Gnss_Satellite::operator=(Gnss_Satellite&& other) | ||||
|         { | ||||
|             this->reset(); | ||||
|             this->system = std::move(other.get_system()); | ||||
|             this->PRN = std::move(other.get_PRN()); | ||||
|             this->PRN = other.get_PRN(); | ||||
|             this->block = std::move(other.get_block()); | ||||
|             this->rf_link = std::move(other.get_rf_link()); | ||||
|             this->rf_link = other.get_rf_link(); | ||||
|         } | ||||
|     return *this; | ||||
| } | ||||
|   | ||||
| @@ -77,7 +77,7 @@ Gnss_Signal& Gnss_Signal::operator=(const Gnss_Signal& rhs) | ||||
| // Move constructor | ||||
| Gnss_Signal::Gnss_Signal(const Gnss_Signal& other) | ||||
| { | ||||
|     *this = std::move(other); | ||||
|     *this = other; | ||||
| } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez