summaryrefslogtreecommitdiff
path: root/src/cairo-color.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-01-24 09:01:52 +0000
committerCarl Worth <cworth@cworth.org>2005-01-24 09:01:52 +0000
commit31f05254ffabd660b27b26af082ca75ac724c9d7 (patch)
tree7e99a3244b0a1f4fdc180c1258a2717197a640ac /src/cairo-color.c
parentc58f6a4bcf20b1f2a50629100457e4025a7de19b (diff)
Qualify color argument as const. Closes bug #2336.
Diffstat (limited to 'src/cairo-color.c')
-rw-r--r--src/cairo-color.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cairo-color.c b/src/cairo-color.c
index 899b1e3d..ecdae256 100644
--- a/src/cairo-color.c
+++ b/src/cairo-color.c
@@ -67,7 +67,8 @@ _cairo_color_set_rgb (cairo_color_t *color, double red, double green, double blu
}
void
-_cairo_color_get_rgb (cairo_color_t *color, double *red, double *green, double *blue)
+_cairo_color_get_rgb (const cairo_color_t *color,
+ double *red, double *green, double *blue)
{
if (red)
*red = color->red;