[cairo] Missing const on set_dash()? [cairomm]

Jonathon Jongsma jonathon at quotidian.org
Mon Aug 17 19:36:38 PDT 2009


Ian Britten wrote:
> Hi all,
> Am I correct that the first parameter to Cairo::Context::set_dash()
> should be const?  And that cairomm copies the input, and doesn't
> modify the parameter?
> http://cairographics.org/documentation/cairomm/reference/classCairo_1_1Context.html#de74abb6db86a97ff3800e431e27ba45
> 
> Assuming "yes", I don't know if it can be changed at this point, or
> if that'd be a problematic ABI change, but I'd vote to change it...
> 
> Thanks,
> Ian

Yes, indeed that is an oversight.  Providing a const overload for this function shouldn't be a problem, and we can deprecate the incorrect version.

-- 
jonner


More information about the cairo mailing list