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