Skip to content

Commit

Permalink
fixed comp warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
warunawickramasingha committed Nov 22, 2024
1 parent 7c3e5cc commit 8f83b5c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MANTID_DATAOBJECTS_DLL PeakShapeDetectorBin : public PeakShapeBase {
std::string shapeName() const override;

/// PeakBase interface
std::optional<double> radius(RadiusType type = RadiusType::Radius) const override;
std::optional<double> radius(RadiusType) const override { return std::nullopt; }

static const std::string detectorBinShapeName();

Expand Down
2 changes: 0 additions & 2 deletions Framework/DataObjects/src/PeakShapeDetectorBin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ Mantid::Geometry::PeakShape *PeakShapeDetectorBin::clone() const { return new Pe

std::string PeakShapeDetectorBin::shapeName() const { return PeakShapeDetectorBin::detectorBinShapeName(); }

std::optional<double> PeakShapeDetectorBin::radius(RadiusType type) const { return std::nullopt; }

const std::string PeakShapeDetectorBin::detectorBinShapeName() { return "PeakShapeDetectorBin"; }

} // namespace Mantid::DataObjects
2 changes: 1 addition & 1 deletion Framework/DataObjects/src/PeakShapeDetectorBinFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Mantid::Geometry::PeakShape *PeakShapeDetectorBinFactory::create(const std::stri

std::vector<std::tuple<int32_t, double, double>> detectorBinList;
const Json::Value detectorList = root["detectors"];
for (int index = 0; index < detectorList.size(); index++) {
for (uint32_t index = 0; index < detectorList.size(); index++) {
const Json::Value detBinVal = detectorList[index];
detectorBinList.emplace_back(detBinVal["detId"].asInt(), detBinVal["startX"].asDouble(),
detBinVal["endX"].asDouble());
Expand Down

0 comments on commit 8f83b5c

Please sign in to comment.