Skip to content

Commit

Permalink
Merge pull request #7876 from ptcox/csc_geom_kill_const_cast
Browse files Browse the repository at this point in the history
csc geom kill const cast
  • Loading branch information
cmsbuild committed Feb 21, 2015
2 parents 74ebbb1 + de77d5a commit ff4cb7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Geometry/CSCGeometry/src/CSCGeometry.cc
Expand Up @@ -42,7 +42,7 @@ void CSCGeometry::addChamber(CSCChamber* ch){
void CSCGeometry::addLayer(CSCLayer* l) {
theDetUnits.push_back(l);
theLayers.push_back(l);
theDetTypes.push_back(const_cast<GeomDetType*>(&(l->type()))); //@@ FIXME drop const_cast asap!
theDetTypes.push_back(l->chamber()->specs());
theDetUnitIds.push_back(l->geographicalId());
addDet(l);
}
Expand Down

0 comments on commit ff4cb7b

Please sign in to comment.