[cairo] Parameter types of image_surface API
David.Weiss at ptvgroup.com
Wed Jul 30 02:30:32 PDT 2014
I'm wondering whether there's any reason for the image_surface API to use signed datatypes for width/height parameters?
I think unsigned int makes more sense.
Also, none of the parameters is defined as const. E.g. and especially for getters like cairo_image_surface_get_width() it's IMHO better style (and semantics) to pass const cairo_surface_t * const instead of just cairo_surface_t *.
Is there a technical reason not to do so?
Logistics Software Development
Haid-und-Neu-Str. 15, 76131 Karlsruhe, Germany
david.weiss at ptvgroup.com<mailto:david.weiss at ptvgroup.com>
PTV Planung Transport Verkehr AG
Executive Board: Vincent Kobesen (CEO)
Chairman of the Supervisory Board: Dr. h.c. Frank-Jürgen Weise
Commercial Register (HRB-Nr): 109262
Local Court: Mannheim
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cairo