diff --git a/Framework/DataObjects/inc/MantidDataObjects/PeakShapeDetectorBin.h b/Framework/DataObjects/inc/MantidDataObjects/PeakShapeDetectorBin.h index 2384b0929387..f8de67d3b594 100644 --- a/Framework/DataObjects/inc/MantidDataObjects/PeakShapeDetectorBin.h +++ b/Framework/DataObjects/inc/MantidDataObjects/PeakShapeDetectorBin.h @@ -16,7 +16,7 @@ namespace DataObjects { */ class MANTID_DATAOBJECTS_DLL PeakShapeDetectorBin : public PeakShapeBase { public: - PeakShapeDetectorBin(std::vector> detectorBinList, + PeakShapeDetectorBin(const std::vector> &detectorBinList, Kernel::SpecialCoordinateSystem frame, std::string algorithmName = std::string(), int algorithmVersion = -1); /// Equals operator diff --git a/Framework/DataObjects/src/PeakShapeDetectorBin.cpp b/Framework/DataObjects/src/PeakShapeDetectorBin.cpp index 8ee7801b21a0..b7991e326cf7 100644 --- a/Framework/DataObjects/src/PeakShapeDetectorBin.cpp +++ b/Framework/DataObjects/src/PeakShapeDetectorBin.cpp @@ -21,7 +21,7 @@ namespace Mantid::DataObjects { * @param algorithmName Name of the algorithm using this shape * @param algorithmVersion Version of the above algorithm */ -PeakShapeDetectorBin::PeakShapeDetectorBin(std::vector> detectorBinList, +PeakShapeDetectorBin::PeakShapeDetectorBin(const std::vector> &detectorBinList, Kernel::SpecialCoordinateSystem frame, std::string algorithmName, int algorithmVersion) : PeakShapeBase(frame, std::move(algorithmName), algorithmVersion), m_detectorBinList(detectorBinList) {