Skip to content
Snippets Groups Projects
Commit 662fa797 authored by Elliot Oram's avatar Elliot Oram
Browse files

Merge branch '15623_SaveAscii_spectrumMetaData' of...

Merge branch '15623_SaveAscii_spectrumMetaData' of github.com:mantidproject/mantid into 15623_SaveAscii_spectrumMetaData
parents 4087836c 9420785d
No related branches found
No related tags found
No related merge requests found
......@@ -440,7 +440,7 @@ void SaveAscii2::populateQMetaData() {
void SaveAscii2::populateSpectrumNumberMetaData() {
std::vector<std::string> spectrumNumbers;
const auto nHist = m_ws->getNumberHistograms();
for (auto i = 0; i < nHist; i++) {
for (size_t i = 0; i < nHist; i++) {
const auto specNum = m_ws->getSpectrum(i)->getSpectrumNo();
const auto specNumStr = boost::lexical_cast<std::string>(specNum);
spectrumNumbers.push_back(specNumStr);
......@@ -454,7 +454,7 @@ void SaveAscii2::populateSpectrumNumberMetaData() {
void SaveAscii2::populateAngleMetaData() {
std::vector<std::string> angles;
const auto nHist = m_ws->getNumberHistograms();
for (auto i = 0; i < nHist; i++) {
for (size_t i = 0; i < nHist; i++) {
const auto specNo = m_ws->getSpectrum(i)->getSpectrumNo();
const auto workspaceIndex = m_specToIndexMap[specNo];
auto det = m_ws->getDetector(workspaceIndex);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment