Fix const-correctness for ColorPicker::pickColor() member function

This commit is contained in:
David Capello 2014-02-02 18:49:19 -03:00
parent e671508d85
commit 0d7f4498b9
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ ColorPicker::ColorPicker()
{
}
void ColorPicker::pickColor(DocumentLocation& location, int x, int y, Mode mode)
void ColorPicker::pickColor(const DocumentLocation& location, int x, int y, Mode mode)
{
m_alpha = 255;
m_color = app::Color::fromMask();

View File

@ -30,7 +30,7 @@ namespace app {
ColorPicker();
void pickColor(DocumentLocation& location, int x, int y, Mode mode);
void pickColor(const DocumentLocation& location, int x, int y, Mode mode);
app::Color color() const { return m_color; }
int alpha() const { return m_alpha; }