Use standard naming convention for ItemToRowJob members
Use "m_" prefix for all of them. No real changes.
This commit is contained in:
@@ -3860,18 +3860,16 @@ int wxDataViewMainWindow::RecalculateCount() const
|
|||||||
class ItemToRowJob : public DoJob
|
class ItemToRowJob : public DoJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
ItemToRowJob(const wxDataViewItem& item_, wxVector<wxDataViewItem>::reverse_iterator iter)
|
ItemToRowJob(const wxDataViewItem& item, wxVector<wxDataViewItem>::reverse_iterator iter)
|
||||||
: m_iter(iter),
|
: m_item(item), m_iter(iter), m_ret(-1)
|
||||||
item(item_)
|
|
||||||
{
|
{
|
||||||
ret = -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Maybe binary search will help to speed up this process
|
// Maybe binary search will help to speed up this process
|
||||||
virtual int operator() ( wxDataViewTreeNode * node) wxOVERRIDE
|
virtual int operator() ( wxDataViewTreeNode * node) wxOVERRIDE
|
||||||
{
|
{
|
||||||
ret ++;
|
m_ret ++;
|
||||||
if( node->GetItem() == item )
|
if( node->GetItem() == m_item )
|
||||||
{
|
{
|
||||||
return DoJob::DONE;
|
return DoJob::DONE;
|
||||||
}
|
}
|
||||||
@@ -3883,7 +3881,7 @@ public:
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ret += node->GetSubTreeCount();
|
m_ret += node->GetSubTreeCount();
|
||||||
return DoJob::SKIP_SUBTREE;
|
return DoJob::SKIP_SUBTREE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3891,12 +3889,12 @@ public:
|
|||||||
|
|
||||||
// the row number is begin from zero
|
// the row number is begin from zero
|
||||||
int GetResult() const
|
int GetResult() const
|
||||||
{ return ret -1; }
|
{ return m_ret -1; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
wxDataViewItem m_item;
|
||||||
wxVector<wxDataViewItem>::reverse_iterator m_iter;
|
wxVector<wxDataViewItem>::reverse_iterator m_iter;
|
||||||
wxDataViewItem item;
|
int m_ret;
|
||||||
int ret;
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user