From 5af2d77b8468bc585ac350b53d704f030b74fe1d Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 18 Mar 2024 23:23:49 +0100 Subject: 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). --- src/Fl_Grid.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/Fl_Grid.cxx') 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; } -- cgit v1.2.3