summaryrefslogtreecommitdiff
path: root/src/Fl_Screen_Driver.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-06-16 14:24:05 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-06-16 14:24:05 +0200
commitf94ed7116c2943c105faebb14798e2ac33bb37cd (patch)
tree2b0a2c13c859ef1f44e24043931460ae4f99ebe9 /src/Fl_Screen_Driver.cxx
parent986a8b33a2b5e503dd36ddbc8283d489ebbd9290 (diff)
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.
Diffstat (limited to 'src/Fl_Screen_Driver.cxx')
-rw-r--r--src/Fl_Screen_Driver.cxx2
1 files changed, 1 insertions, 1 deletions
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);