From 21833f10e587f1538214fbf86c846c6fa3b73be7 Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Tue, 19 Mar 2024 04:30:33 -0500 Subject: [PATCH] Use default op= in LASModuleProfile This avoids a clang warning about deprecated copy constructor. --- .../LaserAlignment/interface/LASModuleProfile.h | 1 - Alignment/LaserAlignment/src/LASModuleProfile.cc | 15 --------------- 2 files changed, 16 deletions(-) diff --git a/Alignment/LaserAlignment/interface/LASModuleProfile.h b/Alignment/LaserAlignment/interface/LASModuleProfile.h index 469aa67ed00e7..c7535af917957 100644 --- a/Alignment/LaserAlignment/interface/LASModuleProfile.h +++ b/Alignment/LaserAlignment/interface/LASModuleProfile.h @@ -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]); diff --git a/Alignment/LaserAlignment/src/LASModuleProfile.cc b/Alignment/LaserAlignment/src/LASModuleProfile.cc index fd01102d8e1e8..343b284f98fdb 100644 --- a/Alignment/LaserAlignment/src/LASModuleProfile.cc +++ b/Alignment/LaserAlignment/src/LASModuleProfile.cc @@ -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) { /// ///