From 21655099a71718f7671e634a9b4c4079d135cfaf Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 29 Mar 2016 06:20:43 +0000 Subject: Add a default value to the argument of Fl_System_Driver::dnd(int). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11458 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_System_Driver.H | 2 +- src/Fl.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/FL/Fl_System_Driver.H b/FL/Fl_System_Driver.H index 6e3a92aee..4ace8411d 100644 --- a/FL/Fl_System_Driver.H +++ b/FL/Fl_System_Driver.H @@ -92,7 +92,7 @@ public: virtual void compose_reset() { Fl::compose_state = 0; } // implement to support drag-n-drop. use_selection = 1 means the GUI is welcome to display // the selected text during the D&D operation - virtual int dnd(int use_selection) {return 0;} + virtual int dnd(int use_selection = 0) {return 0;} }; #endif // FL_SYSTEM_DRIVER_H diff --git a/src/Fl.cxx b/src/Fl.cxx index e45119c9d..05e8ba029 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1879,7 +1879,7 @@ int Fl::use_high_res_GL_ = 0; int Fl::dnd() { - return Fl_System_Driver::driver()->dnd(0); + return Fl_System_Driver::driver()->dnd(); } // -- cgit v1.2.3