mirror of
https://github.com/fltk/fltk.git
synced 2026-06-04 23:42:15 +08:00
Applied hidden copy / ctor patch as suggested in STR 860
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@4421 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-7
@@ -71,13 +71,9 @@ class FL_EXPORT Fl_Widget {
|
||||
|
||||
const char *tooltip_;
|
||||
|
||||
# if !defined(WIN32) || !defined(FL_DLL)
|
||||
// "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 &) { return *this; }
|
||||
Fl_Widget(const Fl_Widget &) {}
|
||||
# endif // !WIN32 || !FL_DLL
|
||||
// unimplemented copy ctor and assignment operator
|
||||
Fl_Widget(const Fl_Widget &);
|
||||
Fl_Widget& operator=(const Fl_Widget &);
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user