Comment 0 for bug 1981984

Revision history for this message
PBS (pbs3141) wrote :

There is a clear violation of const-correctness in In pixelgraph.h:

    inline PixelGraph::PixelGraph(Glib::RefPtr<Gdk::Pixbuf const> pixbuf)
    // ...
    guint8 *pixels = pixbuf->get_pixels();

Since pixbuf is const, the last line above should be

    guint8 const *pixels = pixbuf->get_pixels();

This issue breaks building libdepixelize with GTK4.