diff --git a/Framework/Geometry/src/Instrument.cpp b/Framework/Geometry/src/Instrument.cpp index f3f8f5c177179e8b72a946fa9a977b0a057bc1b7..0990d31e19b2e3d79b816f62485c16a9f91b945f 100644 --- a/Framework/Geometry/src/Instrument.cpp +++ b/Framework/Geometry/src/Instrument.cpp @@ -1259,11 +1259,10 @@ Instrument::ContainsState Instrument::containsRectDetectors() const { continue; // skip choppers HACK! - if(comp->getName()=="chopper-position") { + if (comp->getName() == "chopper-position") { continue; } - if (dynamic_cast<const RectangularDetector *>(comp.get())) { if (!foundRect) foundRect = true;