From 21323df7fe84193504be91f0ee20a869707e8412 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 31 Aug 2003 18:25:53 +0000 Subject: [PATCH] Fixed return type of GetPageCount (int -> size_t). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/os2/notebook.h | 2 +- src/os2/notebook.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/os2/notebook.h b/include/wx/os2/notebook.h index 4adaa2c64f..48e60c5b08 100644 --- a/include/wx/os2/notebook.h +++ b/include/wx/os2/notebook.h @@ -57,7 +57,7 @@ public: // --------- // Get number of pages in the dialog // - int GetPageCount(void) const; + size_t GetPageCount(void) const; // // Set the currently selected page, return the index of the previously diff --git a/src/os2/notebook.cpp b/src/os2/notebook.cpp index fe64de1281..af5ac8b27e 100644 --- a/src/os2/notebook.cpp +++ b/src/os2/notebook.cpp @@ -186,7 +186,7 @@ WXDWORD wxNotebook::OS2GetStyle ( // wxNotebook accessors // ---------------------------------------------------------------------------- -int wxNotebook::GetPageCount() const +size_t wxNotebook::GetPageCount() const { int nPageInternal = m_pages.Count(); int nPageAPI = (int)::WinSendMsg(GetHWND(), BKM_QUERYPAGECOUNT, (MPARAM)0, (MPARAM)BKA_END); -- 2.45.2