From 23e2e8ac3c9a3636045429530f1d805f41f9341d Mon Sep 17 00:00:00 2001 From: Christopher Jones Date: Tue, 19 Mar 2024 04:11:37 -0500 Subject: [PATCH] Use default operator= in CondFormats/CSCObjects This avoids a clang warning about deprecated auto generated copy constructors. --- .../CSCObjects/interface/CSCDQM_DCSBase.h | 9 ------ .../CSCObjects/interface/CSCDQM_DCSData.h | 32 ------------------- 2 files changed, 41 deletions(-) diff --git a/CondFormats/CSCObjects/interface/CSCDQM_DCSBase.h b/CondFormats/CSCObjects/interface/CSCDQM_DCSBase.h index 17eae0736e48f..6b2097353f602 100644 --- a/CondFormats/CSCObjects/interface/CSCDQM_DCSBase.h +++ b/CondFormats/CSCObjects/interface/CSCDQM_DCSBase.h @@ -88,15 +88,6 @@ namespace cscdqm { /** Get CSC Detector Id object from the address */ CSCDetId getDetId() const { return CSCDetId(iendcap, istation, iring, ichamber); } - /** Assignment operator */ - DCSAddressType& operator=(const DCSAddressType& a) { - iendcap = a.iendcap; - istation = a.istation; - iring = a.iring; - ichamber = a.ichamber; - return *this; - } - /** Output stream operator */ friend std::ostream& operator<<(std::ostream& out, const DCSAddressType& a) { std::ostringstream os; diff --git a/CondFormats/CSCObjects/interface/CSCDQM_DCSData.h b/CondFormats/CSCObjects/interface/CSCDQM_DCSData.h index 3b594a391ebfc..df91088591e6a 100644 --- a/CondFormats/CSCObjects/interface/CSCDQM_DCSData.h +++ b/CondFormats/CSCObjects/interface/CSCDQM_DCSData.h @@ -47,14 +47,6 @@ namespace cscdqm { return out << os.str(); } - TempMeasType& operator=(const TempMeasType& m) { - adr = m.adr; - board = m.board; - boardId = m.boardId; - value = m.value; - return *this; - } - COND_SERIALIZABLE; }; @@ -74,13 +66,6 @@ namespace cscdqm { return out << os.str(); } - HVVMeasType& operator=(const HVVMeasType& m) { - adr = m.adr; - position = m.position; - value = m.value; - return *this; - } - COND_SERIALIZABLE; }; @@ -104,14 +89,6 @@ namespace cscdqm { return out << os.str(); } - LVVMeasType& operator=(const LVVMeasType& m) { - adr = m.adr; - board = m.board; - boardId = m.boardId; - nominal_v = m.nominal_v; - return *this; - } - COND_SERIALIZABLE; }; @@ -137,15 +114,6 @@ namespace cscdqm { return out << os.str(); } - LVIMeasType& operator=(const LVIMeasType& m) { - adr = m.adr; - board = m.board; - boardId = m.boardId; - nominal_v = m.nominal_v; - value = m.value; - return *this; - } - COND_SERIALIZABLE; };