From: Václav Slavík Date: Thu, 29 Jul 2010 15:30:11 +0000 (+0000) Subject: Fix gcc warning in wxDataViewListCtrl::ItemToRow(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/780e4fd0031efe694241303d8eb161dae204dfc3 Fix gcc warning in wxDataViewListCtrl::ItemToRow(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dataview.h b/include/wx/dataview.h index b1229375ad..b9bc7320d0 100644 --- a/include/wx/dataview.h +++ b/include/wx/dataview.h @@ -951,7 +951,7 @@ public: { return (const wxDataViewListStore*) GetModel(); } int ItemToRow(const wxDataViewItem &item) const - { return item.IsOk() ? GetStore()->GetRow(item) : wxNOT_FOUND; } + { return item.IsOk() ? (int)GetStore()->GetRow(item) : wxNOT_FOUND; } wxDataViewItem RowToItem(int row) const { return row == wxNOT_FOUND ? wxDataViewItem() : GetStore()->GetItem(row); }