diff --git a/include/wx/msw/window.h b/include/wx/msw/window.h index bd793e143b..b660324e67 100644 --- a/include/wx/msw/window.h +++ b/include/wx/msw/window.h @@ -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); diff --git a/src/msw/nativdlg.cpp b/src/msw/nativdlg.cpp index d71c3b13e4..71160b643a 100644 --- a/src/msw/nativdlg.cpp +++ b/src/msw/nativdlg.cpp @@ -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;