Commit 4861c618 authored by Jose Borreguero's avatar Jose Borreguero
Browse files

Refs #30885 resolved to casting pointer



Signed-off-by: default avatarJose Borreguero <borreguero@gmail.com>
parent c579de17
......@@ -118,9 +118,9 @@ private slots:
void singleComponentPicked(size_t pickID);
void alignPeaks(const std::vector<Mantid::Kernel::V3D> &planePeaks,
const Mantid::Geometry::IPeak *peak);
void comparePeaks(
const std::pair<std::vector<Mantid::Geometry::IPeak *>,
std::vector<Mantid::Geometry::IPeak *>> &peaks);
void
comparePeaks(const std::pair<std::vector<Mantid::Geometry::IPeak *>,
std::vector<Mantid::Geometry::IPeak *>> &peaks);
void updateSelectionInfoDisplay();
void shapeCreated();
void updatePlotMultipleDetectors();
......
......@@ -1007,7 +1007,7 @@ QString ComponentInfoController::displayNonDetectorInfo(
QString
ComponentInfoController::displayPeakInfo(Mantid::Geometry::IPeak *ipeak) {
std::stringstream text;
auto peak = static_cast<Mantid::DataObjects::Peak*>(ipeak);
auto peak = static_cast<Mantid::DataObjects::Peak *>(ipeak);
auto instrument = peak->getInstrument();
auto sample = instrument->getSample()->getPos();
auto source = instrument->getSource()->getPos();
......@@ -1081,7 +1081,7 @@ void ComponentInfoController::displayAlignPeaksInfo(
// find projection of beam direction onto plane
// this is so we always orientate to a common reference direction
auto peak = static_cast<const Mantid::DataObjects::Peak*>(ipeak);
auto peak = static_cast<const Mantid::DataObjects::Peak *>(ipeak);
const auto instrument = peak->getInstrument();
const auto samplePos = instrument->getSample()->getPos();
const auto sourcePos = instrument->getSource()->getPos();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment