summaryrefslogtreecommitdiff
path: root/FL/Fl_Rect.H
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-13 10:35:18 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2017-06-13 10:35:18 +0000
commita10eae7443138412ba2410fd29ccdea4a94f80d7 (patch)
treeeca45d819b58e84c5448ad7d991ae29f79f1c4e5 /FL/Fl_Rect.H
parent60d7c4174217bd935695a442c931350cfa629c5b (diff)
Remove copy constructor from Fl_Rect.
As suggested by Manolo in STR #3385, comment #7. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12260 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Rect.H')
-rw-r--r--FL/Fl_Rect.H8
1 files changed, 2 insertions, 6 deletions
diff --git a/FL/Fl_Rect.H b/FL/Fl_Rect.H
index dc2125ebd..7e7d376e0 100644
--- a/FL/Fl_Rect.H
+++ b/FL/Fl_Rect.H
@@ -52,15 +52,11 @@ public:
Fl_Rect(int X, int Y, int W, int H)
: x_(X), y_(Y), w_(W), h_(H) {}
- /** Copy constructor. */
- Fl_Rect (const Fl_Rect& r)
- : x_(r.x()), y_(r.y()), w_(r.w()), h_(r.h()) {}
-
- /** This constructor creates a rectangle based a widget's position and size. */
+ /** This constructor creates a rectangle based on a widget's position and size. */
Fl_Rect (const Fl_Widget& widget)
: x_(widget.x()), y_(widget.y()), w_(widget.w()), h_(widget.h()) {}
- /** This constructor creates a rectangle based a widget's position and size. */
+ /** This constructor creates a rectangle based on a widget's position and size. */
Fl_Rect (const Fl_Widget* const widget)
: x_(widget->x()), y_(widget->y()), w_(widget->w()), h_(widget->h()) {}