Skip to content

Commit

Permalink
Use default op= in LASModuleProfile
Browse files Browse the repository at this point in the history
This avoids a clang warning about deprecated copy constructor.
  • Loading branch information
Dr15Jones committed Mar 19, 2024
1 parent 28f76ff commit 21833f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
1 change: 0 additions & 1 deletion Alignment/LaserAlignment/interface/LASModuleProfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class LASModuleProfile {
void SetValue(unsigned int theStripNumber, const double& theValue) { data.at(theStripNumber) = theValue; }
void SetAllValuesTo(const double&);
void DumpToArray(double[512]);
LASModuleProfile& operator=(const LASModuleProfile&);
LASModuleProfile operator+(const LASModuleProfile&);
LASModuleProfile operator-(const LASModuleProfile&);
LASModuleProfile operator+(const double[512]);
Expand Down
15 changes: 0 additions & 15 deletions Alignment/LaserAlignment/src/LASModuleProfile.cc
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,6 @@ void LASModuleProfile::Init(void) {
data.resize(512);
}

LASModuleProfile& LASModuleProfile::operator=(const LASModuleProfile& anotherProfile) {
///
///
///

// check for self-assignment
if (this != &anotherProfile) {
for (unsigned int i = 0; i < 512; ++i) {
data.at(i) = anotherProfile.GetValue(i);
}
}

return *this;
}

LASModuleProfile LASModuleProfile::operator+(const LASModuleProfile& anotherProfile) {
///
///
Expand Down

0 comments on commit 21833f1

Please sign in to comment.