Skip to content

Commit

Permalink
Refs #11534 Fix gcc compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonPiccardoSelg committed Aug 5, 2015
1 parent dd80605 commit 1eda80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Algorithms/test/Q1D2Test.h
Original file line number Diff line number Diff line change
Expand Up @@ -580,13 +580,13 @@ void createQResolutionWorkspace(Mantid::API::MatrixWorkspace_sptr & qResolution,
alteredInput = Mantid::API::MatrixWorkspace_sptr(input->clone().release());

// Populate Y with Value1
for (int i = 0; i < qResolution->getNumberHistograms(); ++i) {
for (size_t i = 0; i < qResolution->getNumberHistograms(); ++i) {
auto& data = qResolution->dataY(i);
std::fill(data.begin(), data.end(), value1);
}

// Populate Y with Value2
for (int i = 0; i < alteredInput->getNumberHistograms(); ++i) {
for (size_t i = 0; i < alteredInput->getNumberHistograms(); ++i) {
auto& data = alteredInput->dataY(i);
std::fill(data.begin(), data.end(), value2);
}
Expand Down

0 comments on commit 1eda80a

Please sign in to comment.