fix unused variables and parameters warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-12-15 13:59:54 +00:00
parent 46f3731f5a
commit b733a0174a
2 changed files with 12 additions and 10 deletions

View File

@@ -51,7 +51,7 @@ wxPopupWindow::~wxPopupWindow()
}
}
bool wxPopupWindow::Create(wxWindow *parent, int flags)
bool wxPopupWindow::Create(wxWindow *parent, int WXUNUSED(flags))
{
m_macIsUserPane = false ;
@@ -63,13 +63,15 @@ bool wxPopupWindow::Create(wxWindow *parent, int flags)
WindowClass wclass = kHelpWindowClass;
WindowAttributes attr = kWindowCompositingAttribute ;
WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
Rect bounds = { 0,0,0,0 };
OSStatus err = ::CreateNewWindow( wclass , attr , &bounds , (WindowRef*)&m_popupWindowRef ) ;
if ( err == noErr )
{
// SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
#if 0
WindowRef parentWindow =(WindowRef) parent->MacGetTopLevelWindowRef();
SetWindowGroup( (WindowRef) m_popupWindowRef, GetWindowGroup(parentWindow)); // Put them in the same group so that their window layers are consistent
#endif
}
m_peer = new wxMacControl(this , true /*isRootControl*/) ;

View File

@@ -269,7 +269,7 @@ void wxRendererMac::DrawSplitterSash( wxWindow *win,
}
void
wxRendererMac::DrawItemSelectionRect(wxWindow *win,
wxRendererMac::DrawItemSelectionRect(wxWindow * WXUNUSED(win),
wxDC& dc,
const wxRect& rect,
int flags)