comparison src/DLD-FUNCTIONS/__init_fltk__.cc @ 12122:f4689107dd8c

Explicitly disallow copying in some classes.
author Pascal Dupuis <Pascal.Dupuis@uclouvain.be>
date Sat, 22 Jan 2011 02:21:52 -0500
parents 4ced6b90fffb
children b4d26c65e7e6
comparison
equal deleted inserted replaced
11598:62b7ea59a6ff 12122:f4689107dd8c
606 { 606 {
607 delete menubar; 607 delete menubar;
608 } 608 }
609 609
610 private: 610 private:
611
612 // No copying!
613
614 fltk_uimenu (const fltk_uimenu&);
615
616 fltk_uimenu operator = (const fltk_uimenu&);
617
611 Fl_Menu_Bar* menubar; 618 Fl_Menu_Bar* menubar;
612 }; 619 };
613 620
614 class plot_window : public Fl_Window 621 class plot_window : public Fl_Window
615 { 622 {
868 window_label = fp.get_title (); 875 window_label = fp.get_title ();
869 label (window_label.c_str ()); 876 label (window_label.c_str ());
870 } 877 }
871 878
872 private: 879 private:
880
881 // No copying!
882
883 plot_window (const plot_window&);
884
885 plot_window& operator = (const plot_window&);
886
873 // window name -- this must exists for the duration of the window's 887 // window name -- this must exists for the duration of the window's
874 // life 888 // life
875 std::string window_label; 889 std::string window_label;
876 890
877 // Mod keys status 891 // Mod keys status