Skip to content
Snippets Groups Projects
Commit 9ce76eac authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

ctd

parent b1dd28dc
No related branches found
No related tags found
1 merge request!227Core: minor cleanup in Instrument context
......@@ -38,14 +38,14 @@ ISimulation2D::~ISimulation2D() = default;
IDetector2D& ISimulation2D::detector2D()
{
IDetector2D* p = dynamic_cast<IDetector2D*>(instrument().getDetector());
IDetector2D* p = dynamic_cast<IDetector2D*>(&detector());
ASSERT(p);
return *p;
}
const IDetector2D& ISimulation2D::detector2D() const
{
const IDetector2D* p = dynamic_cast<const IDetector2D*>(instrument().getDetector());
const IDetector2D* p = dynamic_cast<const IDetector2D*>(&detector());
ASSERT(p);
return *p;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment