Skip to content

Commit

Permalink
Make Fl_Image_Reader::name() 'const' (#271)
Browse files Browse the repository at this point in the history
Thanks to @wcout for finding this.
  • Loading branch information
Albrecht Schlosser committed Sep 28, 2021
1 parent 32e02a6 commit 66c0bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Fl_Image_Reader.h
Expand Up @@ -80,7 +80,7 @@ class Fl_Image_Reader
}

// return the name or filename for this reader
const char *name() { return pName; }
const char *name() const { return pName; }

// skip a given number of bytes
void skip(unsigned int n) { seek(tell() + n); }
Expand Down

0 comments on commit 66c0bf4

Please sign in to comment.