Prevent from instantiation of wxPropertyGridIteratorBase

The purpose of this class is to be a base class
for wxPropertyGridIterator classes.
This commit is contained in:
Artur Wieczorek 2022-12-30 14:10:29 +02:00
parent 6863b0a92d
commit d3c194590d
2 changed files with 6 additions and 3 deletions

View file

@ -162,9 +162,10 @@ wxPG_ITERATE_DEFAULT = wxPG_ITERATE_NORMAL
// Base for wxPropertyGridIterator classes.
class WXDLLIMPEXP_PROPGRID wxPropertyGridIteratorBase
{
public:
protected:
wxPropertyGridIteratorBase() = default;
public:
void Assign( const wxPropertyGridIteratorBase& it );
bool AtEnd() const { return m_property == nullptr; }

View file

@ -181,9 +181,10 @@ wxPG_ITERATE_DEFAULT = wxPG_ITERATE_NORMAL
*/
class wxPropertyGridIteratorBase
{
public:
protected:
wxPropertyGridIteratorBase();
public:
void Assign( const wxPropertyGridIteratorBase& it );
bool AtEnd() const;
@ -232,7 +233,8 @@ public:
wxPropertyGridIterator( wxPropertyGridPageState* state,
int flags, int startPos, int dir = 0 );
wxPropertyGridIterator( const wxPropertyGridIterator& it );
~wxPropertyGridIterator();};
~wxPropertyGridIterator();
};
/**
Const version of wxPropertyGridIterator.