Skip to content
Snippets Groups Projects
Unverified Commit ac9389db authored by Pete Peterson's avatar Pete Peterson Committed by GitHub
Browse files

Merge pull request #30947 from rosswhitfield/fix_gcc_warning_CentroidPeaksMD2

Fix compiler warning on gcc 7.5
parents ab366196 14455fba
No related branches found
No related tags found
No related merge requests found
......@@ -15,8 +15,6 @@
#include "MantidKernel/System.h"
#include "MantidMDAlgorithms/IntegratePeaksMD.h"
using Mantid::DataObjects::PeaksWorkspace;
namespace Mantid {
namespace MDAlgorithms {
......@@ -85,7 +83,7 @@ void CentroidPeaksMD2::integrate(typename MDEventWorkspace<MDE, nd>::sptr ws) {
// Get a direct ref to that peak.
IPeak &p = peakWS->getPeak(i);
Peak *peak = dynamic_cast<Peak *>(&p);
double detectorDistance;
double detectorDistance = 0.;
if (peak)
detectorDistance = p.getL2();
......
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