1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-14 04:00:34 +00:00

Do not use move when it is not needed

This commit is contained in:
Carles Fernandez 2019-07-05 15:24:28 +02:00
parent 0e0991a1a5
commit 5d679a3eef
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;
}