Make ::SetValue return a bool

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2007-08-24 09:32:20 +00:00
parent 8d2b3fc374
commit f5f688eddd

View File

@ -240,11 +240,12 @@ public:
MyMusicModelNode *node = (MyMusicModelNode*) item.GetID();
switch (col)
{
case 0: node->m_title = variant.GetString(); break;
case 1: node->m_artist = variant.GetString(); break;
case 2: node->m_year = variant.GetString(); break;
case 0: node->m_title = variant.GetString(); return true;
case 1: node->m_artist = variant.GetString(); return true;
case 2: node->m_year = variant.GetString(); return true;
default: wxLogError( "MyMusicModel::SetValue: wrong column" );
}
return false;
}
virtual wxDataViewItem GetParent( const wxDataViewItem &item ) const