Skip to content
Snippets Groups Projects
Verified Commit 759cdff9 authored by Stephen Nicholas Swatman's avatar Stephen Nicholas Swatman
Browse files

Make track parameters getter const

There is really no reason for this getter method to not be const. The
returned pointer is to a const value, and the non-const qualification
makes it impossible to use this extremely useful getter in non-const
contexts.
parent c1cea7de
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!36828Add hole search functionality to the Trk::GlobalChi2Fitter
......@@ -47,7 +47,7 @@ namespace Trk {
const MeasurementBase *measurement(void);
void setTrackParameters(std::unique_ptr<const TrackParameters>);
const TrackParameters *trackParameters(void);
const TrackParameters *trackParameters(void) const;
GXFMaterialEffects *materialEffects();
const Surface *surface() const;
......@@ -150,7 +150,7 @@ namespace Trk {
return m_covariancematrix;
}
inline const TrackParameters *GXFTrackState::trackParameters(void) {
inline const TrackParameters *GXFTrackState::trackParameters(void) const {
return m_trackpar.get();
}
......
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