mirror of
https://github.com/fltk/fltk.git
synced 2026-02-06 00:01:57 +08:00
Fix trailing comma in enums of public headers
Compiler warning: comma at end of enumerator list [-Wpedantic] Note 1: I decided to fix these warnings although trailing commas in enums are allowed at least since C++11. Note 2: I fixed only public headers because these headers may be compiled in user code. To do: check internal headers.
This commit is contained in:
@@ -48,7 +48,7 @@ class FL_EXPORT Fl_Tree_Item_Array {
|
||||
int _size; // #items *allocated* for array
|
||||
int _chunksize; // #items to enlarge mem allocation
|
||||
enum {
|
||||
MANAGE_ITEM = 1, ///> manage the Fl_Tree_Item's internals (internal use only)
|
||||
MANAGE_ITEM = 1 ///> manage the Fl_Tree_Item's internals (internal use only)
|
||||
};
|
||||
char _flags; // flags to control behavior
|
||||
void enlarge(int count);
|
||||
|
||||
Reference in New Issue
Block a user