redid the fix for the compiler warning: made gimp_vectors_to_art_vpath()

2003-09-07  Sven Neumann  <sven@gimp.org>

	* app/vectors/gimpvectors.[ch]: redid the fix for the compiler
	warning: made gimp_vectors_to_art_vpath() take a const GimpVectors
	again, but don't freeze/thaw it since it isn't changed anyway.
This commit is contained in:
Sven Neumann 2003-09-07 00:03:36 +00:00 committed by Sven Neumann
parent 0b53610c8b
commit f6f49b2328
3 changed files with 10 additions and 10 deletions

View File

@ -1,8 +1,14 @@
2003-09-07 Sven Neumann <sven@gimp.org>
* app/vectors/gimpvectors.[ch]: redid the fix for the compiler
warning: made gimp_vectors_to_art_vpath() take a const GimpVectors
again, but don't freeze/thaw it since it isn't changed anyway.
2003-09-06 Helvetix Victorinox <helvetix@gimp.org>
* app/composite/gimp-composite-mmx.c
app/composite/gimp-composite-sse.c
app/composite/gimp-composite-sse2.c:
* app/composite/gimp-composite-sse.c
* app/composite/gimp-composite-sse2.c:
Convert "unsigned long" to guint32 in preparation for 64bit
machinery.

View File

@ -961,7 +961,7 @@ gimp_vectors_real_make_bezier (const GimpVectors *vectors)
* Return value: Newly allocated ArtVpath.
*/
ArtVpath *
gimp_vectors_to_art_vpath (GimpVectors *vectors)
gimp_vectors_to_art_vpath (const GimpVectors *vectors)
{
ArtVpath *vec; /* Libart path we're creating */
GimpStroke *cur_stroke;
@ -971,8 +971,6 @@ gimp_vectors_to_art_vpath (GimpVectors *vectors)
vec = art_new (ArtVpath, num_points);
gimp_vectors_freeze (vectors);
/* Get the list of Strokes in the vector, and create the equivalent
* ArtVpath node */
@ -984,9 +982,5 @@ gimp_vectors_to_art_vpath (GimpVectors *vectors)
gimp_stroke_to_art_point (cur_stroke, vec);
}
gimp_vectors_thaw (vectors);
/* That's it - nothing else to see here */
return vec;
}

View File

@ -166,7 +166,7 @@ GimpVectors * gimp_vectors_make_bezier (const GimpVectors *vectors);
/* Convert to libart vector path */
ArtVpath * gimp_vectors_to_art_vpath (GimpVectors *vectors);
ArtVpath * gimp_vectors_to_art_vpath (const GimpVectors *vectors);
#endif /* __GIMP_VECTORS_H__ */