Skip to content

Commit

Permalink
Merge pull request #44462 from Dr15Jones/defaultOpCSCObjects
Browse files Browse the repository at this point in the history
Use default operator= in CondFormats/CSCObjects
  • Loading branch information
cmsbuild authored Mar 19, 2024
2 parents 4c8d1bf + 23e2e8a commit 7452562
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
9 changes: 0 additions & 9 deletions CondFormats/CSCObjects/interface/CSCDQM_DCSBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
32 changes: 0 additions & 32 deletions CondFormats/CSCObjects/interface/CSCDQM_DCSData.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

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

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

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

Expand Down

0 comments on commit 7452562

Please sign in to comment.