Some string cleanup

This commit is contained in:
2025-08-10 23:14:32 -04:00
parent 47d9c7eaa0
commit 143f1f7d2d
4 changed files with 19 additions and 25 deletions

View File

@ -456,7 +456,7 @@ protected:
virtual bool setSelectedItems() { return false; }
virtual void addItem (const char *str, bool enabled, bool selected) = 0;
virtual void setItem (int index, bool selected) = 0;
virtual void pushGroup (const char *name, bool enabled) = 0;
virtual void pushGroup( const std::string &name, bool enabled ) = 0;
virtual void popGroup () = 0;
public:
FltkSelectionResource (FltkPlatform *platform) :
@ -486,7 +486,7 @@ public:
void addItem (const char *str, bool enabled, bool selected);
void setItem (int index, bool selected);
void pushGroup (const char *name, bool enabled);
void pushGroup( const std::string &name, bool enabled ) override;
void popGroup ();
void sizeRequest (core::Requisition *requisition);
@ -503,7 +503,7 @@ protected:
int getMaxItemWidth ();
private:
static void widgetCallback (Fl_Widget *widget, void *data);
void *newItem (const char *str, bool enabled, bool selected);
void *newItem (const std::string &str, bool enabled, bool selected);
int currDepth;
int colWidths[4];
int showRows;
@ -516,7 +516,7 @@ public:
void addItem (const char *str, bool enabled, bool selected);
void setItem (int index, bool selected);
void pushGroup (const char *name, bool enabled);
void pushGroup( const std::string &name, bool enabled ) override;
void popGroup ();
void sizeRequest (core::Requisition *requisition);