Skip to content

Commit

Permalink
refs #6271. Fix GCC errors and warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jan 11, 2013
1 parent d60dfcd commit e10419e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/MantidQt/SliceViewer/src/PeakPalette.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "MantidQtSliceViewer/PeakPalette.h"
#include <algorithm>
#include <sstream>
#include <stdexcept>

namespace MantidQt
{
Expand All @@ -22,7 +23,7 @@ namespace MantidQt
m_backgroundMap = m_foregroundMap;
}

PeakPalette::PeakPalette(const PeakPalette& other) : m_foregroundMap(other.m_foregroundMap), m_backgroundMap(other.m_backgroundMap)
PeakPalette::PeakPalette(const PeakPalette& other) : m_backgroundMap(other.m_backgroundMap), m_foregroundMap(other.m_foregroundMap)
{
}

Expand Down Expand Up @@ -102,7 +103,7 @@ namespace MantidQt
{
throw std::runtime_error("The PeakPalette size is not consistent");
}
return m_foregroundMap.size();
return static_cast<int>(m_foregroundMap.size());
}

bool PeakPalette::operator==(const PeakPalette& other) const
Expand Down

0 comments on commit e10419e

Please sign in to comment.