From f94ed7116c2943c105faebb14798e2ac33bb37cd Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Wed, 16 Jun 2021 14:24:05 +0200 Subject: Make non-const Fl_Screen_Driver methods const (#181) As requested by issue #181: "Fl_Screen_Driver.H non-const functions should be const" Not all methods could be made 'const' because some screen related methods call init() internally. --- src/Fl_Screen_Driver.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Fl_Screen_Driver.cxx') diff --git a/src/Fl_Screen_Driver.cxx b/src/Fl_Screen_Driver.cxx index de925baa5..93d1800e5 100644 --- a/src/Fl_Screen_Driver.cxx +++ b/src/Fl_Screen_Driver.cxx @@ -488,7 +488,7 @@ void Fl_Screen_Driver::open_display() // simulation of XParseColor: -int Fl_Screen_Driver::parse_color(const char* p, uchar& r, uchar& g, uchar& b) +int Fl_Screen_Driver::parse_color(const char* p, uchar& r, uchar& g, uchar& b) const { if (*p == '#') p++; size_t n = strlen(p); -- cgit v1.2.3