From 899a4c2c9b01f248ce6f9f894755d83c488334f4 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 27 Jun 2008 04:38:31 +0000 Subject: [PATCH] Compile fix svn path=/workspaces/wxListCtrl/; revision=15503 --- clientgui/ViewProjects.cpp | 2 +- clientgui/ViewWork.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/clientgui/ViewProjects.cpp b/clientgui/ViewProjects.cpp index c5252e5e02..17eadb76b7 100644 --- a/clientgui/ViewProjects.cpp +++ b/clientgui/ViewProjects.cpp @@ -538,7 +538,7 @@ wxInt32 CViewProjects::AddCacheElement() { wxASSERT(pItem); if (pItem) { m_ProjectCache.push_back(pItem); - m_iSortedIndexes.Add(m_ProjectCache.size()-1); + m_iSortedIndexes.Add((int)m_ProjectCache.size()-1); return 0; } return -1; diff --git a/clientgui/ViewWork.cpp b/clientgui/ViewWork.cpp index c31e59b9e4..1276fa6ec5 100644 --- a/clientgui/ViewWork.cpp +++ b/clientgui/ViewWork.cpp @@ -82,7 +82,7 @@ BEGIN_EVENT_TABLE (CViewWork, CBOINCBaseView) EVT_LIST_ITEM_SELECTED(ID_LIST_WORKVIEW, CViewWork::OnListSelected) EVT_LIST_ITEM_DESELECTED(ID_LIST_WORKVIEW, CViewWork::OnListDeselected) EVT_LIST_COL_CLICK(ID_LIST_WORKVIEW, CViewWork::OnColClick) - EVT_LIST_CACHE_HINT(ID_LIST_PROJECTSVIEW, CViewProjects::OnCacheHint) + EVT_LIST_CACHE_HINT(ID_LIST_PROJECTSVIEW, CViewWork::OnCacheHint) END_EVENT_TABLE () @@ -469,7 +469,7 @@ wxInt32 CViewWork::AddCacheElement() { wxASSERT(pItem); if (pItem) { m_WorkCache.push_back(pItem); - m_iSortedIndexes.Add(m_WorkCache.size()-1); + m_iSortedIndexes.Add((int)m_WorkCache.size()-1); return 0; } return -1;