diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-03-18 23:23:49 +0100 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-03-18 23:23:49 +0100 |
| commit | 5af2d77b8468bc585ac350b53d704f030b74fe1d (patch) | |
| tree | 5ac8c979b0295695a66d1dcc1c9cd4bb62e40634 /src/Fl_Grid.cxx | |
| parent | dddfec57a1310defead31eee22590c3948984b27 (diff) | |
Add more public accessor methods to Fl_Grid (#937)
Some of these accessor methods should be private so they can't be used
by user code but - due to compiler issues - they must be public for
HP-UX 11.11 (for details see GitHub Issue #937).
Diffstat (limited to 'src/Fl_Grid.cxx')
| -rw-r--r-- | src/Fl_Grid.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Fl_Grid.cxx b/src/Fl_Grid.cxx index e5259be19..95b1d2e2b 100644 --- a/src/Fl_Grid.cxx +++ b/src/Fl_Grid.cxx @@ -2,7 +2,7 @@ // Fl_Grid widget for the Fast Light Tool Kit (FLTK). // // Copyright 2021-2022 by Albrecht Schlosser. -// Copyright 2022-2023 by Bill Spitzak and others. +// Copyright 2022-2024 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -70,23 +70,23 @@ class Fl_Grid::Row { void free_cells() { Cell *cel = cells_; while (cel) { - Cell *next = cel->next_; + Cell *next = cel->next(); delete cel; cel = next; } // free_cells() cells_ = 0; } - // Fl_Grid::Row::remove_cell() - remove all cells of column col from list of cells + // Fl_Grid::Row::remove_cell() - remove all cells of column col from the list of cells void remove_cell(int col) { // Cell *cel = cells_; Cell *prev = 0; while (cel) { - Cell *next = cel->next_; - if (cel->col_ == col) { + Cell *next = cel->next(); + if (cel->col() == col) { if (prev) { - prev->next_ = next; + prev->next(next); } else { cells_ = next; } |
