Skip to content

Remove const_cast from ImpactPoint3dEstimator.cxx

Susumu Oda requested to merge oda/athena:master-ImpactPoint3dEstimator-v3 into master

Remove const_cast from ImpactPoint3dEstimator.cxx

http://goetz.web.cern.ch/goetz/mutable_2019-07-13.html#Other_Vx,

 nightly/master/2019-07-13T2149:Tracking/TrkVertexFitter/TrkVertexFitterUtils/src/ImpactPoint3dEstimator.cxx +360


   358	#endif
   359	
   360	   Trk::AtaPlane* res = const_cast<Trk::AtaPlane *>(dynamic_cast<const Trk::AtaPlane *>
   361	                              (m_extrapolator->extrapolate(*(vtxTrack.initialPerigee()),*theSurfaceAtIP)));
   362	   delete theSurfaceAtIP;

nightly/master/2019-07-13T2149:Tracking/TrkVertexFitter/TrkVertexFitterUtils/src/ImpactPoint3dEstimator.cxx +388


   386	#endif
   387	
   388	    Trk::NeutralAtaPlane* res = const_cast<Trk::NeutralAtaPlane *>(dynamic_cast<const Trk::NeutralAtaPlane *>
   389	                                                                   (m_extrapolator->extrapolate(*initNeutPerigee,*theSurfaceAtIP)));
   390	   delete theSurfaceAtIP;

Merge request reports