summaryrefslogtreecommitdiff
path: root/cogl/cogl-path.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2010-06-28 15:25:19 +0100
committerNeil Roberts <neil@linux.intel.com>2010-06-28 15:25:19 +0100
commitd99a8bf694072a3230c210206b94bf1983436153 (patch)
tree926735de2bf87292d9008cda05c9c74202ab47a2 /cogl/cogl-path.h
parentde1f4885ddb1eb510bc9796a008f7a38a105e598 (diff)
downloadcogl-d99a8bf694072a3230c210206b94bf1983436153.tar.gz
cogl: Add const to some pointer arguments
Some of the arguments to the material and path functions were taking a pointer to a CoglColor or an array of floats that was not intended to be written to but were not marked with const.
Diffstat (limited to 'cogl/cogl-path.h')
-rw-r--r--cogl/cogl-path.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cogl/cogl-path.h b/cogl/cogl-path.h
index a0440f22..a4c74c08 100644
--- a/cogl/cogl-path.h
+++ b/cogl/cogl-path.h
@@ -303,8 +303,8 @@ cogl_path_line (float x_1,
* be constructed.
**/
void
-cogl_path_polyline (float *coords,
- int num_points);
+cogl_path_polyline (const float *coords,
+ int num_points);
/**
@@ -322,8 +322,8 @@ cogl_path_polyline (float *coords,
* fashion for the rest of the vertices.
**/
void
-cogl_path_polygon (float *coords,
- int num_points);
+cogl_path_polygon (const float *coords,
+ int num_points);
/**