]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/bookctrl.cpp
ambiguous operator[] access
[wxWidgets.git] / src / common / bookctrl.cpp
index d083152210541092b925073776fe69f103fadbe0..b04136183e26f69943df4b3cc2a638dd66e55c05 100644 (file)
@@ -140,12 +140,12 @@ wxSize wxBookCtrl::DoGetBestSize() const
 bool
 wxBookCtrl::InsertPage(size_t nPage,
                        wxWindow *page,
-                       const wxString& text,
-                       bool bSelect,
-                       int imageId)
+                       const wxString& WXUNUSED(text),
+                       bool WXUNUSED(bSelect),
+                       int WXUNUSED(imageId))
 {
     wxCHECK_MSG( page, false, _T("NULL page in wxBookCtrl::InsertPage()") );
-    wxCHECK_MSG( nPage < m_pages.size(), false,
+    wxCHECK_MSG( nPage <= m_pages.size(), false,
                  _T("invalid page index in wxBookCtrl::InsertPage()") );
 
     m_pages.Insert(page, nPage);