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:
Vadim Zeitlin 2014-01-20 14:45:19 +00:00
parent d2f125aa35
commit eef9b03d24
2 changed files with 2 additions and 2 deletions

View File

@ -128,7 +128,7 @@ public:
#ifndef __WXUNIVERSAL__
// Native resource loading (implemented in src/msw/nativdlg.cpp)
// 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);
wxWindow* GetWindowChild1(wxWindowID id);
wxWindow* GetWindowChild(wxWindowID id);

View File

@ -43,7 +43,7 @@ extern LONG APIENTRY _EXPORT wxDlgProc(HWND hWnd, UINT message,
// implementation
// ===========================================================================
bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID id)
{
m_windowId = id;