From 780e4fd0031efe694241303d8eb161dae204dfc3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 29 Jul 2010 15:30:11 +0000 Subject: [PATCH] Fix gcc warning in wxDataViewListCtrl::ItemToRow(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/dataview.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.45.2