Don't pass ID to wxWindow::LoadNativeDialog() by reference.
This is completely unnecessary and confusing. See #15893. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
d2f125aa35
commit
eef9b03d24
@ -128,7 +128,7 @@ public:
|
|||||||
#ifndef __WXUNIVERSAL__
|
#ifndef __WXUNIVERSAL__
|
||||||
// Native resource loading (implemented in src/msw/nativdlg.cpp)
|
// Native resource loading (implemented in src/msw/nativdlg.cpp)
|
||||||
// FIXME: should they really be all virtual?
|
// FIXME: should they really be all virtual?
|
||||||
virtual bool LoadNativeDialog(wxWindow* parent, wxWindowID& id);
|
virtual bool LoadNativeDialog(wxWindow* parent, wxWindowID id);
|
||||||
virtual bool LoadNativeDialog(wxWindow* parent, const wxString& name);
|
virtual bool LoadNativeDialog(wxWindow* parent, const wxString& name);
|
||||||
wxWindow* GetWindowChild1(wxWindowID id);
|
wxWindow* GetWindowChild1(wxWindowID id);
|
||||||
wxWindow* GetWindowChild(wxWindowID id);
|
wxWindow* GetWindowChild(wxWindowID id);
|
||||||
|
@ -43,7 +43,7 @@ extern LONG APIENTRY _EXPORT wxDlgProc(HWND hWnd, UINT message,
|
|||||||
// implementation
|
// implementation
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
|
bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID id)
|
||||||
{
|
{
|
||||||
m_windowId = id;
|
m_windowId = id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user