diff options
Diffstat (limited to 'src/tipwin.cc')
-rw-r--r-- | src/tipwin.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tipwin.cc b/src/tipwin.cc index c2f37431..235e5f56 100644 --- a/src/tipwin.cc +++ b/src/tipwin.cc @@ -27,6 +27,7 @@ #include "prefs.h" #include "tipwin.hh" +#include "dlib/dlib.h" /* * Forward declarations @@ -132,7 +133,7 @@ TipWinButton::TipWinButton(int x, int y, int w, int h, const char *l) : Fl_Button(x, y, w, h, l) { tipwin = my_tipwin(); - mytooltip = strdup("empty"); + mytooltip = dStrdup("empty"); } TipWinButton::~TipWinButton(void) @@ -161,7 +162,7 @@ int TipWinButton::handle(int e) void TipWinButton::set_tooltip(const char *s) { free(mytooltip); - mytooltip = strdup(s); + mytooltip = dStrdup(s); } @@ -209,7 +210,7 @@ TipWinInput::TipWinInput (int x, int y, int w, int h, const char *l) : Fl_Input(x,y,w,h,l) { tipwin = my_tipwin(); - mytooltip = strdup("empty"); + mytooltip = dStrdup("empty"); } TipWinInput::~TipWinInput(void) @@ -239,6 +240,6 @@ int TipWinInput::handle(int e) void TipWinInput::set_tooltip(const char *s) { free(mytooltip); - mytooltip = strdup(s); + mytooltip = dStrdup(s); } |