From 1c38a0f2f7187322959e8ff165ae4d891acf9cae Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Sat, 22 Jan 2011 22:38:55 +0000 Subject: Tweaks to silence more MS compiler warnings. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8300 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Tooltip.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'FL/Fl_Tooltip.H') diff --git a/FL/Fl_Tooltip.H b/FL/Fl_Tooltip.H index 33b69cb6a..ef7633c7f 100644 --- a/FL/Fl_Tooltip.H +++ b/FL/Fl_Tooltip.H @@ -57,7 +57,7 @@ public: /** Returns non-zero if tooltips are enabled. */ static int enabled() { return Fl::option(Fl::OPTION_SHOW_TOOLTIPS); } /** Enables tooltips on all widgets (or disables if b is false). */ - static void enable(int b = 1) { Fl::option(Fl::OPTION_SHOW_TOOLTIPS, b);} + static void enable(int b = 1) { Fl::option(Fl::OPTION_SHOW_TOOLTIPS, (b!=0));} /** Same as enable(0), disables tooltips on all widgets. */ static void disable() { enable(0); } static void (*enter)(Fl_Widget* w); -- cgit v1.2.3