]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listbkg.cpp
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW...
[wxWidgets.git] / src / generic / listbkg.cpp
index 34d726efe714225d9d7a4c1a1cacb69f35731267..3b10666dcb6a19e797a3796450e03b817ed09067 100644 (file)
@@ -172,7 +172,8 @@ wxRect wxListbook::GetPageRect() const
 {
     const wxSize sizeList = m_list->GetSize();
 
-    wxRect rectPage(wxPoint(0, 0), GetClientSize());
+    wxPoint pt(0, 0);
+    wxRect rectPage(pt, GetClientSize());
     switch ( GetWindowStyle() & wxLB_ALIGN_MASK )
     {
         default:
@@ -401,7 +402,7 @@ wxListbook::InsertPage(size_t n,
     // index of the selected page
     if ( int(n) <= m_selection )
     {
-        // one extra page added 
+        // one extra page added
         m_selection++;
         m_list->Select(m_selection);
         m_list->Focus(m_selection);