Fix compiler warning

This commit is contained in:
Magne Sjaastad 2017-04-20 12:33:18 +02:00
parent c587fd2400
commit bd47826608
2 changed files with 9 additions and 1 deletions

View File

@ -104,6 +104,14 @@ cvf::Color3fArray ColorTable::color3fArray() const
return col3fArr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
size_t ColorTable::size() const
{
return m_colors.size();
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@ -65,7 +65,7 @@ public:
cvf::Color3ubArray color3ubArray() const;
cvf::Color3fArray color3fArray() const;
const size_t size() const { return m_colors.size(); }
size_t size() const;
static cvf::Color3ub fromQColor(const QColor& color);
static cvf::Color3ubArray interpolateColorArray(const cvf::Color3ubArray& colorArray, size_t targetColorCount);