diff --git a/Framework/Crystal/src/PeaksIntersection.cpp b/Framework/Crystal/src/PeaksIntersection.cpp index 32f0e1cf1781ed975e30338475572a60f763a59f..1a103ead36d7dae8857635db9659c9afc636883f 100644 --- a/Framework/Crystal/src/PeaksIntersection.cpp +++ b/Framework/Crystal/src/PeaksIntersection.cpp @@ -11,7 +11,6 @@ #include "MantidGeometry/Crystal/IPeak.h" #include "MantidKernel/ListValidator.h" -#include <variant> #include <boost/function.hpp> using namespace Mantid::API; @@ -80,7 +79,6 @@ void PeaksIntersection::executePeaksIntersection(const bool checkPeakExtents) { m_peakRadius = this->getProperty("PeakRadius"); - boost::function<V3D(Peak *)> coordFrameFunc; coordFrameFunc = &Peak::getHKL; if (coordinateFrame == detectorSpaceFrame()) { diff --git a/qt/widgets/instrumentview/src/PeakOverlay.cpp b/qt/widgets/instrumentview/src/PeakOverlay.cpp index 29f93f4efa0d1a61fabd500620e384532fd800aa..84cc6276fa91682d0ec0f47a0a9c36cb2f788f84 100644 --- a/qt/widgets/instrumentview/src/PeakOverlay.cpp +++ b/qt/widgets/instrumentview/src/PeakOverlay.cpp @@ -252,8 +252,7 @@ void PeakOverlay::createMarkers(const PeakMarker2D::Style &style) { try { auto peakFull = dynamic_cast<Mantid::DataObjects::Peak &>(peak); pos = peakFull.getDetPos(); - } - catch(std::bad_cast) { + } catch (std::bad_cast) { g_log.error("Cannot create markers for this type of peak"); return; }