summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2016-03-29 06:20:43 +0000
committerManolo Gouy <Manolo>2016-03-29 06:20:43 +0000
commit21655099a71718f7671e634a9b4c4079d135cfaf (patch)
tree5a8a05cfe3c211b5a7589baf4cea0ae42cc2996f
parent8ee4c7303f4e075674f3d02140f84ae3e7bb4d04 (diff)
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
-rw-r--r--FL/Fl_System_Driver.H2
-rw-r--r--src/Fl.cxx2
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();
}
//