From e9d9f136ee346ff8a29f204ddf75ef8471475722 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 9 Jul 2001 12:21:43 +0000 Subject: [PATCH] compilation fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/dynarray.cpp | 2 +- src/generic/listctrl.cpp | 3 +++ src/unix/mimetype.cpp | 10 +++++----- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/common/dynarray.cpp b/src/common/dynarray.cpp index a081998ac9..2d8e162378 100644 --- a/src/common/dynarray.cpp +++ b/src/common/dynarray.cpp @@ -212,7 +212,7 @@ int wxBaseArray::Index(long lItem, CMPFUNC fnCompare) const { size_t n = IndexForInsert(lItem, fnCompare); - return n < m_nCount && m_pItems[n] == lItem ? n : wxNOT_FOUND; + return n < m_nCount && m_pItems[n] == lItem ? (int)n : wxNOT_FOUND; } // add item at the end diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 0bef509211..e625f22269 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -3567,6 +3567,8 @@ void wxListMainWindow::RecalculatePositions() GetScrollPos(wxVERTICAL), TRUE ); + // FIXME: wxGTK::wxScrolledWindow doesn't have SetTargetRect() +#if !defined(__WXGTK__) || defined(__WXUNIVERSAL__) // we must have an integer number of lines on screen and so we fit // the real control size to the line height wxRect rect; @@ -3575,6 +3577,7 @@ void wxListMainWindow::RecalculatePositions() rect.width = clientWidth; rect.height = ((clientHeight - LINE_SPACING) / lineHeight)*lineHeight; SetTargetRect(rect); +#endif } else // !report { diff --git a/src/unix/mimetype.cpp b/src/unix/mimetype.cpp index 2332dc12ac..6693d5bd88 100644 --- a/src/unix/mimetype.cpp +++ b/src/unix/mimetype.cpp @@ -2531,11 +2531,11 @@ bool wxMimeTypesManagerImpl::Unassociate(wxFileType *ft) else { WriteMimeInfo(nIndex, TRUE ); - m_aTypes.Remove (nIndex); - m_aEntries.Remove (nIndex); - m_aExtensions.Remove (nIndex); - m_aDescriptions.Remove (nIndex); - m_aIcons.Remove (nIndex); + m_aTypes.RemoveAt(nIndex); + m_aEntries.RemoveAt(nIndex); + m_aExtensions.RemoveAt(nIndex); + m_aDescriptions.RemoveAt(nIndex); + m_aIcons.RemoveAt(nIndex); } } // check data integrity -- 2.45.2