Skip to content

Commit

Permalink
refs #11056. Fix GCC warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Feb 18, 2015
1 parent 50140bf commit d89e750
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/API/inc/MantidAPI/IPeak.h
Expand Up @@ -51,9 +51,9 @@ class MANTID_API_DLL IPeak {
virtual bool findDetector() = 0;

virtual void setQSampleFrame(Mantid::Kernel::V3D QSampleFrame,
boost::optional<double> detectorDistance = boost::optional<double>()) = 0;
boost::optional<double> detectorDistance) = 0;
virtual void setQLabFrame(Mantid::Kernel::V3D QLabFrame,
boost::optional<double> detectorDistance = boost::optional<double>()) = 0;
boost::optional<double> detectorDistance) = 0;

virtual void setWavelength(double wavelength) = 0;
virtual double getWavelength() const = 0;
Expand Down
Expand Up @@ -11,21 +11,21 @@ Mantid::Geometry::PeakShape_sptr getPeakShape(IPeak &peak) {
return Mantid::Geometry::PeakShape_sptr(peak.getPeakShape().clone());
}
void setQLabFrame1(IPeak &peak, Mantid::Kernel::V3D qLabFrame) {
// Set the q lab frame
return peak.setQLabFrame(qLabFrame);
// Set the q lab frame. No explicit detector distance.
return peak.setQLabFrame(qLabFrame, boost::optional<double>());
}
void setQLabFrame2(IPeak &peak, Mantid::Kernel::V3D qLabFrame, double distance) {
// Set the q lab frame
// Set the q lab frame. Detector distance specified.
return peak.setQLabFrame(qLabFrame, distance);
}

void setQSampleFrame1(IPeak &peak, Mantid::Kernel::V3D qSampleFrame) {
// Set the qsample frame
return peak.setQSampleFrame(qSampleFrame);
// Set the qsample frame. No explicit detector distance.
return peak.setQSampleFrame(qSampleFrame, boost::optional<double>());
}

void setQSampleFrame2(IPeak &peak, Mantid::Kernel::V3D qSampleFrame, double distance) {
// Set the qsample frame
// Set the qsample frame. Detector distance specified.
return peak.setQSampleFrame(qSampleFrame, distance);
}

Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/MantidQt/SliceViewer/test/MockObjects.h
Expand Up @@ -200,9 +200,9 @@ class MockPeakTransformFactory : public PeakTransformFactory
MOCK_METHOD0(findDetector,
bool());
MOCK_METHOD2(setQSampleFrame,
void(Mantid::Kernel::V3D QSampleFrame, double detectorDistance));
void(Mantid::Kernel::V3D QSampleFrame, boost::optional<double> detectorDistance));
MOCK_METHOD2(setQLabFrame,
void(Mantid::Kernel::V3D QLabFrame, double detectorDistance));
void(Mantid::Kernel::V3D QLabFrame, boost::optional<double> detectorDistance));
MOCK_METHOD1(setWavelength,
void(double wavelength));
MOCK_CONST_METHOD0(getWavelength,
Expand Down
2 changes: 1 addition & 1 deletion Code/Mantid/Vates/VatesAPI/test/vtkPeakMarkerFactoryTest.h
Expand Up @@ -36,7 +36,7 @@ class MockPeaksWorkspace : public PeaksWorkspace
MOCK_METHOD1(addPeak, void (const IPeak& ipeak));
MOCK_METHOD1(getPeak, Mantid::DataObjects::Peak & (int peakNum));
MOCK_CONST_METHOD1(getPeak, const Mantid::DataObjects::Peak & (int peakNum));
MOCK_CONST_METHOD2(createPeak, Mantid::API::IPeak* (Mantid::Kernel::V3D QLabFrame, double detectorDistance));
MOCK_CONST_METHOD2(createPeak, Mantid::API::IPeak* (Mantid::Kernel::V3D QLabFrame, boost::optional<double> detectorDistance));
};

//=====================================================================================
Expand Down

0 comments on commit d89e750

Please sign in to comment.