Mercurial > hg > svgui
diff layer/SpectrumLayer.cpp @ 248:28c8e8e3c537
* Fix many compile warnings, remove some debug output
author | Chris Cannam |
---|---|
date | Mon, 30 Apr 2007 13:36:23 +0000 |
parents | 8dc50f57d480 |
children | a2ae3d93c645 |
line wrap: on
line diff
--- a/layer/SpectrumLayer.cpp Mon Apr 30 09:07:08 2007 +0000 +++ b/layer/SpectrumLayer.cpp Mon Apr 30 13:36:23 2007 +0000 @@ -242,8 +242,7 @@ } bool -SpectrumLayer::getValueExtents(float &min, float &max, bool &logarithmic, - QString &units) const +SpectrumLayer::getValueExtents(float &, float &, bool &, QString &) const { return false; } @@ -260,10 +259,10 @@ if (genericDesc == "") return ""; float minvalue = 0.f; - if (minbin < m_values.size()) minvalue = m_values[minbin]; + if (minbin < int(m_values.size())) minvalue = m_values[minbin]; float maxvalue = minvalue; - if (maxbin < m_values.size()) maxvalue = m_values[maxbin]; + if (maxbin < int(m_values.size())) maxvalue = m_values[maxbin]; if (minvalue > maxvalue) std::swap(minvalue, maxvalue); @@ -316,7 +315,7 @@ QString description; - if (range > m_sliceableModel->getResolution()) { + if (range > int(m_sliceableModel->getResolution())) { description = tr("%1\nBin:\t%2 (%3)\n%4 value:\t%5\ndB:\t%6") .arg(genericDesc) .arg(binstr)