From a8f6ef519066976e75833343952f7b6dd70dafa0 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 20 Feb 2002 13:52:46 +0000 Subject: [PATCH] compilation fix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/generic/textdlgg.h | 2 +- src/generic/textdlgg.cpp | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/include/wx/generic/textdlgg.h b/include/wx/generic/textdlgg.h index 81409bf504..0b41fbaf93 100644 --- a/include/wx/generic/textdlgg.h +++ b/include/wx/generic/textdlgg.h @@ -41,7 +41,7 @@ public: long style = wxTextEntryDialogStyle, const wxPoint& pos = wxDefaultPosition); - void SetValue(const wxString& val) { m_value = val; m_textctrl->SetValue(val); } + void SetValue(const wxString& val); wxString GetValue() const { return m_value; } // implementation only diff --git a/src/generic/textdlgg.cpp b/src/generic/textdlgg.cpp index 9b6a5b965e..5eadd8e018 100644 --- a/src/generic/textdlgg.cpp +++ b/src/generic/textdlgg.cpp @@ -31,8 +31,6 @@ #if wxUSE_TEXTDLG #ifndef WX_PRECOMP - #include - #include "wx/utils.h" #include "wx/dialog.h" #include "wx/button.h" @@ -122,4 +120,11 @@ void wxTextEntryDialog::OnOK(wxCommandEvent& WXUNUSED(event) ) EndModal(wxID_OK); } +void wxTextEntryDialog::SetValue(const wxString& val) +{ + m_value = val; + + m_textctrl->SetValue(val); +} + #endif // wxUSE_TEXTDLG