fix some harmless warnings (last two parts of patch 1779004)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-14 17:00:45 +00:00
parent c07bf3a93f
commit b7fe22610e
2 changed files with 45 additions and 43 deletions

View File

@@ -272,8 +272,10 @@ wxDataViewItem wxDataViewIndexListModel::GetItem( unsigned int row ) const
return wxDataViewItem( m_hash[row] ); return wxDataViewItem( m_hash[row] );
} }
int wxDataViewIndexListModel::Compare( const wxDataViewItem &item1, const wxDataViewItem &item2, int wxDataViewIndexListModel::Compare(const wxDataViewItem& item1,
unsigned int column, bool ascending ) const wxDataViewItem& item2,
unsigned int WXUNUSED(column),
bool ascending)
{ {
if (ascending) if (ascending)
return GetRow(item1) - GetRow(item2); return GetRow(item1) - GetRow(item2);

View File

@@ -2074,7 +2074,7 @@ bool wxDataViewMainWindow::ItemDeleted(const wxDataViewItem& parent,
} }
bool isContainer = false; bool isContainer = false;
wxDataViewTreeNodes nds = node->GetNodes(); wxDataViewTreeNodes nds = node->GetNodes();
for (int i = 0; i < nds.GetCount(); i ++) for (size_t i = 0; i < nds.GetCount(); i ++)
{ {
if (nds[i]->GetItem() == item) if (nds[i]->GetItem() == item)
{ {