mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-12 03:39:51 +00:00
Minor changes in ColorShades member functions to avoid copying a Shade object
This commit is contained in:
parent
82ab0bc40a
commit
056cd3cdfc
@ -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;
|
||||
|
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user