Missing const in PixelGraph

Bug #1981984 reported by PBS
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libdepixelize
New
Undecided
Unassigned

Bug Description

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

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

Since the pixbuf is const, the last line above should be

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

This issue breaks building libdepixelize with GTK4.

PBS (pbs3141)
description: updated
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.