From 6efdb3b337990cac9766a69475a287c8c92449bf Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 19 Oct 2020 01:24:55 +0200 Subject: [PATCH] Put generic wxDataViewCtrl helpers in an anonymous namespace No real changes, just don't pollute the global namespace unnecessarily. --- src/generic/datavgen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/generic/datavgen.cpp b/src/generic/datavgen.cpp index fb83cd49cb..d259e93509 100644 --- a/src/generic/datavgen.cpp +++ b/src/generic/datavgen.cpp @@ -2993,6 +2993,10 @@ void wxDataViewHeaderWindow::FinishEditing() //----------------------------------------------------------------------------- // Helper class for do operation on the tree node //----------------------------------------------------------------------------- + +namespace +{ + class DoJob { public: @@ -3040,6 +3044,8 @@ bool Walker( wxDataViewTreeNode * node, DoJob & func ) return false; } +} // anonymous namespace + bool wxDataViewMainWindow::ItemAdded(const wxDataViewItem & parent, const wxDataViewItem & item) { if (IsVirtualList())