summaryrefslogtreecommitdiff
path: root/test/device.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-27 14:52:43 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2021-08-27 14:52:43 +0200
commit6ac305a50804498b8c7ab00d23d2d4f3164b84fa (patch)
tree9093bd58f0babd89ce55a45cee7e53d5029a1e14 /test/device.cxx
parent23c54e7a4b82fe325d74a181060535b60243208d (diff)
Remove compiler warnings '-Wextra-semi' (see also PR #266)
I compiled with `-Wextra-semi -Werror=extra-semi` on Linux and Windows (cross-compiled on Linux) and removed all "extra semicolon" warnings I could find. I didn't check on macOS (yet). Note: Linux configured with and w/o Pango but not w/o Xft. Compilation with other options (e.g. Cairo) might still emit such warnings.
Diffstat (limited to 'test/device.cxx')
-rw-r--r--test/device.cxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/test/device.cxx b/test/device.cxx
index bb49413f9..3f67ce1bf 100644
--- a/test/device.cxx
+++ b/test/device.cxx
@@ -61,12 +61,12 @@ public:
MyWidget(int x, int y):Fl_Box(x,y,100,100, "Clipping and rect(f):\nYellow rect.framed\nby B-Y-G-R rect. 1 p.\nthick. Your printer may \nrender very thin lines\nsurrounding \"X\""){
align(FL_ALIGN_TOP);
labelsize(10);
- };
+ }
};
-class MyWidget2: public Fl_Box{
+class MyWidget2: public Fl_Box {
protected:
- void draw(){
+ void draw() {
Fl_Box::draw();
int d;
// fl_line_style(0);
@@ -160,18 +160,18 @@ protected:
fl_line(x()+61,y()+65, x()+59, y()+63);
fl_color(FL_BLACK);
- };
+ }
public:
- MyWidget2(int x, int y):Fl_Box(x,y,100,100, "Integer primitives"){
+ MyWidget2(int x, int y):Fl_Box(x,y,100,100, "Integer primitives") {
labelsize(10);
align(FL_ALIGN_TOP);
- };
+ }
};
-class MyWidget3: public Fl_Box{
+class MyWidget3: public Fl_Box {
protected:
- void draw(){
+ void draw() {
Fl_Box::draw();
double d;
// fl_line_style(0);
@@ -193,12 +193,12 @@ protected:
}
fl_pop_clip();
- };
+ }
public:
- MyWidget3(int x, int y):Fl_Box(x,y,100,100, "Sub-pixel drawing of\nlines 1.63 points apart\nOn the screen you\ncan see aliasing, the\nprinter should render\nthem properly"){
+ MyWidget3(int x, int y):Fl_Box(x,y,100,100, "Sub-pixel drawing of\nlines 1.63 points apart\nOn the screen you\ncan see aliasing, the\nprinter should render\nthem properly") {
labelsize(10);
align(FL_ALIGN_TOP);
- };
+ }
};
class MyWidget4: public Fl_Box{
@@ -355,15 +355,15 @@ protected:
fl_pop_matrix();
fl_color(FL_BLACK);
- };
+ }
public:
MyWidget4(int x, int y):Fl_Box(x,y+10,150,150, "Line styles"){
labelsize(10);
align(FL_ALIGN_TOP);
- };
+ }
};
-class MyWidget5: public Fl_Box{
+class MyWidget5: public Fl_Box {
protected:
void draw(){
Fl_Box::draw();
@@ -430,12 +430,12 @@ protected:
fl_end_complex_polygon();
fl_pop_matrix();
- };
+ }
public:
MyWidget5(int x, int y):Fl_Box(x,y,230,250, "Complex (double) drawings:\nBlue ellipse may not be\ncorrectly transformed\ndue to non-orthogonal\ntransformation"){
labelsize(10);
align(FL_ALIGN_TOP);
- };
+ }
};
uchar *image;
@@ -604,9 +604,9 @@ void copy(Fl_Widget *, void *data) {
}
}
-class My_Button:public Fl_Button{
+class My_Button:public Fl_Button {
protected:
- void draw(){
+ void draw() {
if (type() == FL_HIDDEN_BUTTON) return;
Fl_Color col = value() ? selection_color() : color();
draw_box(value() ? (down_box()?down_box():fl_down(box())) : box(), col);
@@ -617,7 +617,7 @@ protected:
fl_line_style(0);
draw_label();
- };
+ }
public:
My_Button(int x, int y, int w, int h, const char * label = 0):Fl_Button(x,y,w,h,label){}
};