Remove unneeded strdup from example, fold tabs
This commit is contained in:
parent
2141c63628
commit
b409588012
@ -31,7 +31,6 @@
|
||||
#include <FL/Fl_Input.H>
|
||||
#include <FL/fl_draw.H>
|
||||
#include <FL/Fl_Table.H>
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
|
||||
void button_cb(Fl_Widget *w, void*);
|
||||
|
||||
@ -76,7 +75,8 @@ public:
|
||||
} else {
|
||||
// Create the light buttons
|
||||
sprintf(s, "%d/%d ", r, c);
|
||||
Fl_Light_Button *butt = new Fl_Light_Button(X,Y,W,H,fl_strdup(s));
|
||||
Fl_Light_Button *butt = new Fl_Light_Button(X,Y,W,H);
|
||||
butt->copy_label(s);
|
||||
butt->align(FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
|
||||
butt->callback(button_cb, (void*)0);
|
||||
butt->value( ((r+c*2) & 4 ) ? 1 : 0);
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
#include "../../Fl_System_Driver.H"
|
||||
#include <stdarg.h>
|
||||
#include <string.h> // strdup
|
||||
#include <string.h> // strdup
|
||||
|
||||
/*
|
||||
Move everything here that manages the system interface.
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "Fl_WinAPI_System_Driver.H"
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/fl_utf8.h>
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
#include <FL/filename.H>
|
||||
#include <FL/Fl_File_Browser.H>
|
||||
#include <FL/Fl_File_Icon.H>
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include "Fl_X11_System_Driver.H"
|
||||
#include <FL/Fl_File_Browser.H>
|
||||
#include <FL/fl_string.h> // fl_strdup
|
||||
#include <FL/fl_string.h> // fl_strdup
|
||||
#include "../../flstring.h"
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "Fl_Xlib_Graphics_Driver.H"
|
||||
#include <FL/Fl.H>
|
||||
#include <FL/fl_draw.H>
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
#include <FL/platform.H>
|
||||
#include "Fl_Font.H"
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
*/
|
||||
|
||||
#include <FL/fl_string.h>
|
||||
#include <string.h> // strdup/_strdup
|
||||
#include <string.h> // strdup/_strdup
|
||||
#include "Fl_System_Driver.H"
|
||||
|
||||
/**
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
#include "../Xutf8.h"
|
||||
#include <X11/Xlib.h>
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
#include <FL/fl_string.h> // fl_strdup()
|
||||
#include <ctype.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
Loading…
Reference in New Issue
Block a user