From 0ae0226b1d0450ee8cfaac881924be948f3a1e39 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 26 Nov 2001 11:23:25 +0000 Subject: [PATCH] compilation warning fixed for wxUSE_TOOLTIPS==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/controls/controls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index 0b85c4d46e..9a12beab81 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -943,8 +943,8 @@ void MyPanel::OnListBoxButtons( wxCommandEvent &event ) case ID_LISTBOX_ENABLE: { m_text->AppendText("Checkbox clicked.\n"); - wxCheckBox *cb = (wxCheckBox*)event.GetEventObject(); #if wxUSE_TOOLTIPS + wxCheckBox *cb = (wxCheckBox*)event.GetEventObject(); if (event.GetInt()) cb->SetToolTip( "Click to enable listbox" ); else -- 2.45.2