Hide wxGenericDataViewCtrl helpers in anonymous namespace
This is a good idea anyhow, as these classes don't need to have extern linkage and so shouldn't have it, and it also fixes some gcc 11 -Wsubobject-linkage warnings.
This commit is contained in:
@@ -3816,6 +3816,9 @@ int wxDataViewMainWindow::QueryAndCacheLineHeight(unsigned int row, wxDataViewIt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
class RowToTreeNodeJob: public DoJob
|
class RowToTreeNodeJob: public DoJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -3868,6 +3871,8 @@ private:
|
|||||||
wxDataViewTreeNode* m_ret;
|
wxDataViewTreeNode* m_ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // anonymous namespace
|
||||||
|
//
|
||||||
wxDataViewTreeNode * wxDataViewMainWindow::GetTreeNodeByRow(unsigned int row) const
|
wxDataViewTreeNode * wxDataViewMainWindow::GetTreeNodeByRow(unsigned int row) const
|
||||||
{
|
{
|
||||||
wxASSERT( !IsVirtualList() );
|
wxASSERT( !IsVirtualList() );
|
||||||
@@ -4260,6 +4265,9 @@ int wxDataViewMainWindow::RecalculateCount() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
namespace
|
||||||
|
{
|
||||||
|
|
||||||
class ItemToRowJob : public DoJob
|
class ItemToRowJob : public DoJob
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -4309,6 +4317,8 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // anonymous namespace
|
||||||
|
|
||||||
int
|
int
|
||||||
wxDataViewMainWindow::GetRowByItem(const wxDataViewItem & item,
|
wxDataViewMainWindow::GetRowByItem(const wxDataViewItem & item,
|
||||||
WalkFlags flags) const
|
WalkFlags flags) const
|
||||||
|
|||||||
Reference in New Issue
Block a user