Skip to content

Commit

Permalink
Re #11619. Fix compiler warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
mantid-roman committed Apr 30, 2015
1 parent 64f8c17 commit 8554918
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions Code/Mantid/Framework/Algorithms/src/CropWorkspace.cpp
Expand Up @@ -11,11 +11,6 @@
#include "MantidAPI/MemoryManager.h"
#include "MantidKernel/BoundedValidator.h"

namespace {
/// The percentage 'fuzziness' to use when comparing to bin boundaries
const double xBoundaryTolerance = 1.0e-15;
}

namespace Mantid {
namespace Algorithms {

Expand Down
8 changes: 4 additions & 4 deletions Code/Mantid/Framework/Algorithms/src/ExtractSpectra.cpp
Expand Up @@ -43,7 +43,7 @@ ExtractSpectra::~ExtractSpectra() {}
const std::string ExtractSpectra::name() const { return "ExtractSpectra"; }

/// Algorithm's version for identification. @see Algorithm::version
int ExtractSpectra::version() const { return 1; };
int ExtractSpectra::version() const { return 1; }

/// Algorithm's category for identification. @see Algorithm::category
const std::string ExtractSpectra::category() const {
Expand All @@ -54,7 +54,7 @@ const std::string ExtractSpectra::category() const {
const std::string ExtractSpectra::summary() const {
return "Extracts a list of spectra from a workspace and places them in a new "
"workspace.";
};
}

//----------------------------------------------------------------------------------------------
/** Initialize the algorithm's properties.
Expand Down Expand Up @@ -142,7 +142,7 @@ void ExtractSpectra::execHistogram() {
}
Progress prog(this, 0.0, 1.0, (m_spectrumList.size()));
// Loop over the required spectra, copying in the desired bins
for (int j = 0; j < m_spectrumList.size(); ++j) {
for (size_t j = 0; j < m_spectrumList.size(); ++j) {
auto i = m_spectrumList[j];
// Preserve/restore sharing if X vectors are the same
if (m_commonBoundaries) {
Expand Down Expand Up @@ -252,7 +252,7 @@ void ExtractSpectra::execEvent() {
eventW->sortAll(Mantid::DataObjects::TOF_SORT, &prog);
// Loop over the required spectra, copying in the desired bins
PARALLEL_FOR2(m_inputWorkspace, outputWorkspace)
for (int j = 0; j < m_spectrumList.size(); ++j) {
for (int j = 0; j < static_cast<int>(m_spectrumList.size()); ++j) {
PARALLEL_START_INTERUPT_REGION
auto i = m_spectrumList[j];
const EventList &el = eventW->getEventList(i);
Expand Down
Expand Up @@ -32,7 +32,7 @@ const std::string RemoveMaskedSpectra::name() const {
}

/// Algorithm's version for identification. @see Algorithm::version
int RemoveMaskedSpectra::version() const { return 1; };
int RemoveMaskedSpectra::version() const { return 1; }

/// Algorithm's category for identification. @see Algorithm::category
const std::string RemoveMaskedSpectra::category() const {
Expand Down

0 comments on commit 8554918

Please sign in to comment.