Minor changes in ColorShades member functions to avoid copying a Shade object

This commit is contained in:
David Capello 2020-05-05 20:10:54 -03:00
parent 82ab0bc40a
commit 056cd3cdfc
2 changed files with 2 additions and 12 deletions

View File

@ -84,16 +84,6 @@ doc::Remap* ColorShades::createShadeRemap(bool left)
return remap.release();
}
int ColorShades::size() const
{
return int(m_shade.size());
}
Shade ColorShades::getShade() const
{
return m_shade;
}
void ColorShades::setShade(const Shade& shade)
{
m_shade = shade;

View File

@ -35,9 +35,9 @@ namespace app {
void setMinColors(int minColors);
void reverseShadeColors();
doc::Remap* createShadeRemap(bool left);
int size() const;
int size() const { return int(m_shade.size()); }
Shade getShade() const;
const Shade& getShade() const { return m_shade; }
void setShade(const Shade& shade);
int getHotEntry() const { return m_hotIndex; }