Const correctness?

Torbjörn Rathsman <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CADrEGrUw7FgL4gSa9Jt83Xry=U-i+H-tJ46ahHUOHWFctGhyWA@mail.gmail.com>
Function retrieving image width:

int cairo_image_surface_get_width (cairo_surface_t *surface);

So, in what way does Cairo modify the surface when I ask for its width?

The same question applies to the other query methods of image surface. Is
this just a badly written prototype? That is, is the following safe:

auto w=cairo_image_surface_get_width(const_cast<cairo_surface_t*>(surface));

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.