From 549563068451e1e19eb33e4ea535eccd5856814f Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 4 Sep 2003 19:07:58 +0000 Subject: Provide inline code for copy operators in Fl_Widget; this works around a VC++ 7.1 regression without causing problems. (STR #156) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3090 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Widget.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Widget.H b/FL/Fl_Widget.H index 461385bc4..6d2cf50df 100644 --- a/FL/Fl_Widget.H +++ b/FL/Fl_Widget.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Widget.H,v 1.6.2.4.2.20 2003/01/30 21:40:34 easysw Exp $" +// "$Id: Fl_Widget.H,v 1.6.2.4.2.21 2003/09/04 19:07:58 easysw Exp $" // // Widget header file for the Fast Light Tool Kit (FLTK). // @@ -73,8 +73,8 @@ class FL_EXPORT Fl_Widget { // "de-implement" the copy constructors, EXCEPT for when we are using the WIN32 DLL // interface, in which case we can't hide them because Microsoft requires the copy // constructors to implement subclassing... - Fl_Widget & operator=(const Fl_Widget &); - Fl_Widget(const Fl_Widget &); + Fl_Widget & operator=(const Fl_Widget &) { return *this; } + Fl_Widget(const Fl_Widget &) {} # endif // WIN32 && !FL_DLL protected: @@ -217,5 +217,5 @@ public: #endif // -// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.20 2003/01/30 21:40:34 easysw Exp $". +// End of "$Id: Fl_Widget.H,v 1.6.2.4.2.21 2003/09/04 19:07:58 easysw Exp $". // -- cgit v1.2.3