Put private wxQtChoice class inside an anonymous namespace

No real changes, just avoid polluting global scope unnecessarily.
This commit is contained in:
Vadim Zeitlin
2019-01-21 20:01:08 +01:00
parent f09b3de914
commit 000f8ef422

View File

@@ -12,6 +12,9 @@
#include "wx/qt/private/winevent.h" #include "wx/qt/private/winevent.h"
#include <QtWidgets/QComboBox> #include <QtWidgets/QComboBox>
namespace
{
class wxQtChoice : public wxQtEventSignalHandler< QComboBox, wxChoice > class wxQtChoice : public wxQtEventSignalHandler< QComboBox, wxChoice >
{ {
public: public:
@@ -36,6 +39,8 @@ void wxQtChoice::activated(int WXUNUSED(index))
handler->SendSelectionChangedEvent(wxEVT_CHOICE); handler->SendSelectionChangedEvent(wxEVT_CHOICE);
} }
} // anonymous namespace
wxChoice::wxChoice() : wxChoice::wxChoice() :
m_qtComboBox(NULL) m_qtComboBox(NULL)