Mercurial > hg > svgui
comparison layer/ColourMapper.cpp @ 682:1a0dfcbffaf1
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:06:40 +0000 |
parents | aca01b3af29f |
children | 1d526ba11a24 |
comparison
equal
deleted
inserted
replaced
681:eaf4446a1bef | 682:1a0dfcbffaf1 |
---|---|
17 | 17 |
18 #include <iostream> | 18 #include <iostream> |
19 | 19 |
20 #include <cmath> | 20 #include <cmath> |
21 | 21 |
22 #include "base/Debug.h" | |
23 | |
22 ColourMapper::ColourMapper(int map, float min, float max) : | 24 ColourMapper::ColourMapper(int map, float min, float max) : |
23 QObject(), | 25 QObject(), |
24 m_map(map), | 26 m_map(map), |
25 m_min(min), | 27 m_min(min), |
26 m_max(max) | 28 m_max(max) |
27 { | 29 { |
28 if (m_min == m_max) { | 30 if (m_min == m_max) { |
29 std::cerr << "WARNING: ColourMapper: min == max (== " << m_min | 31 cerr << "WARNING: ColourMapper: min == max (== " << m_min |
30 << "), adjusting" << std::endl; | 32 << "), adjusting" << endl; |
31 m_max = m_min + 1; | 33 m_max = m_min + 1; |
32 } | 34 } |
33 } | 35 } |
34 | 36 |
35 ColourMapper::~ColourMapper() | 37 ColourMapper::~ColourMapper() |