From 0d7f4498b92396558b9ac886127302c6158b8444 Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 2 Feb 2014 18:49:19 -0300 Subject: [PATCH] Fix const-correctness for ColorPicker::pickColor() member function --- src/app/color_picker.cpp | 2 +- src/app/color_picker.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/color_picker.cpp b/src/app/color_picker.cpp index 477ca6c78..e3c98c75c 100644 --- a/src/app/color_picker.cpp +++ b/src/app/color_picker.cpp @@ -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(); diff --git a/src/app/color_picker.h b/src/app/color_picker.h index 2da79cae2..7a7a109d7 100644 --- a/src/app/color_picker.h +++ b/src/app/color_picker.h @@ -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; }