diff options
author | corvid <devnull@localhost> | 2014-03-02 17:28:14 +0000 |
---|---|---|
committer | corvid <devnull@localhost> | 2014-03-02 17:28:14 +0000 |
commit | 5b3ffbcdfb5750ffb191f2c9ad29113797ae5a9b (patch) | |
tree | d81acb8ec10a12a8d9940b8d93087ff5ae14c155 | |
parent | 8818cda9ca4e4c19c4c5fcee68460d5ba0cd5ba2 (diff) |
consts for overriding const functions from Fl_Browser
clang complains about this
-rw-r--r-- | dw/fltkui.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/fltkui.cc b/dw/fltkui.cc index 51cd41c6..58bb2c6f 100644 --- a/dw/fltkui.cc +++ b/dw/fltkui.cc @@ -1219,15 +1219,15 @@ int FltkOptionMenuResource::getNumberOfItems() class CustBrowser : public Fl_Browser { public: CustBrowser(int x, int y, int w, int h) : Fl_Browser(x, y, w, h) {}; - int full_width(); - int full_height() {return Fl_Browser::full_height();} + int full_width() const; + int full_height() const {return Fl_Browser::full_height();} int avg_height() {return size() ? Fl_Browser_::incr_height() : 0;} }; /* * Fl_Browser_ has a full_width(), but it has a tendency to contain 0, so... */ -int CustBrowser::full_width() +int CustBrowser::full_width() const { int max = 0; void *item = item_first(); |