Replace Connect() with Bind() in all samples and utils too
Still use Connect() in unit tests which were written explicitly for it and in EventConnector, which can't use Bind() as it uses a variable for the event type. No real changes, just use the newer and more convenient function.
This commit is contained in:
@@ -193,13 +193,7 @@ bool wxTextDocument::OnCreate(const wxString& path, long flags)
|
||||
|
||||
// subscribe to changes in the text control to update the document state
|
||||
// when it's modified
|
||||
GetTextCtrl()->Connect
|
||||
(
|
||||
wxEVT_TEXT,
|
||||
wxCommandEventHandler(wxTextDocument::OnTextChange),
|
||||
NULL,
|
||||
this
|
||||
);
|
||||
GetTextCtrl()->Bind(wxEVT_TEXT, &wxTextDocument::OnTextChange, this);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user