mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2024-12-14 20:20:35 +00:00
Do not use move when it is not needed
This commit is contained in:
parent
0e0991a1a5
commit
5d679a3eef
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user