summaryrefslogtreecommitdiff
path: root/src/Fl_Tooltip.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Tooltip.cxx')
-rw-r--r--src/Fl_Tooltip.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Tooltip.cxx b/src/Fl_Tooltip.cxx
index 00c033b15..62c2f5ea1 100644
--- a/src/Fl_Tooltip.cxx
+++ b/src/Fl_Tooltip.cxx
@@ -41,7 +41,7 @@ int Fl_Tooltip::margin_width_ = 3;
int Fl_Tooltip::margin_height_ = 3;
int Fl_Tooltip::wrap_width_ = 400;
const int Fl_Tooltip::draw_symbols_ = 1;
-char *Fl_Tooltip::override_text_ = nullptr;
+char *Fl_Tooltip::override_text_ = 0;
static const char* tip;
@@ -166,7 +166,7 @@ static void tooltip_hide_timeout(void*) {
The provided text will be copied into a local buffer. To apply the override,
the event handler must return 1.
- To disable the tooltip for the current event, set the override text to nullptr
+ To disable the tooltip for the current event, set the override text to 0
or an empty string ("") and return 1.
\param[in] new_text a C string that will be copied into a buffer
@@ -179,10 +179,10 @@ static void tooltip_hide_timeout(void*) {
int Fl_Tooltip::override_text(const char *new_text) {
if (new_text != override_text_) {
if (window && window->label()==override_text_)
- ((Fl_Widget *) window)->label(nullptr);
+ ((Fl_Widget *) window)->label(0);
if (override_text_)
::free(override_text_);
- override_text_ = nullptr;
+ override_text_ = 0;
if (new_text)
override_text_ = fl_strdup(new_text);
}
@@ -355,7 +355,7 @@ void Fl_Tooltip::enter_area(Fl_Widget* wid, int x,int y,int w,int h, const char*
window->hide();
Fl::remove_timeout(tooltip_hide_timeout);
}
- tooltip_timeout_(nullptr);
+ tooltip_timeout_(0);
} else {
if (window && window->visible()) {
window->hide();