Skip to content
Snippets Groups Projects
Commit 1d4145aa authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

MdtRawDataMonitoring: Const fix.

A long-standing bug in DataVector has meant that it was possible to get
a non-const pointer from a const_iterator.  This package was relying on this
bug to compile; fix that.



Former-commit-id: 52fefe98
parent 735d1e0d
No related branches found
No related tags found
No related merge requests found
......@@ -1937,7 +1937,7 @@ StatusCode MdtRawDataValAlg::handleEvent_effCalc(const Trk::SegmentCollection* s
// LOOP OVER SEGMENTS
for (Trk::SegmentCollection::const_iterator s = segms->begin(); s != segms->end(); ++s) {
Muon::MuonSegment* segment = dynamic_cast<Muon::MuonSegment*>(*s);
const Muon::MuonSegment* segment = dynamic_cast<const Muon::MuonSegment*>(*s);
if (segment == 0) {
ATH_MSG_DEBUG("no pointer to segment!!!");
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment