Put generic wxDataViewCtrl helpers in an anonymous namespace

No real changes, just don't pollute the global namespace unnecessarily.
This commit is contained in:
Vadim Zeitlin
2020-10-19 01:24:55 +02:00
parent 52fdc8c97d
commit 6efdb3b337

View File

@@ -2993,6 +2993,10 @@ void wxDataViewHeaderWindow::FinishEditing()
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// Helper class for do operation on the tree node // Helper class for do operation on the tree node
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
namespace
{
class DoJob class DoJob
{ {
public: public:
@@ -3040,6 +3044,8 @@ bool Walker( wxDataViewTreeNode * node, DoJob & func )
return false; return false;
} }
} // anonymous namespace
bool wxDataViewMainWindow::ItemAdded(const wxDataViewItem & parent, const wxDataViewItem & item) bool wxDataViewMainWindow::ItemAdded(const wxDataViewItem & parent, const wxDataViewItem & item)
{ {
if (IsVirtualList()) if (IsVirtualList())