Use "= default" for all trivial default ctors and dtors
Replace user-specified empty constructors and destructors with the compiler-generated versions, which has a number of advantages for code generation, in addition to being more clear. Closes #22965. Closes #24058.
This commit is contained in:
parent
16cca70f8f
commit
dede4b9326
356 changed files with 589 additions and 586 deletions
|
|
@ -25,7 +25,7 @@ class WXDLLIMPEXP_ADV wxAboutDialogInfo
|
|||
{
|
||||
public:
|
||||
// all fields are initially uninitialized
|
||||
wxAboutDialogInfo() { }
|
||||
wxAboutDialogInfo() = default;
|
||||
|
||||
// accessors for various simply fields
|
||||
// -----------------------------------
|
||||
|
|
|
|||
|
|
@ -233,7 +233,7 @@ class WXDLLIMPEXP_CORE wxAccessibleBase : public wxObject
|
|||
|
||||
public:
|
||||
wxAccessibleBase(wxWindow* win): m_window(win) {}
|
||||
virtual ~wxAccessibleBase() {}
|
||||
virtual ~wxAccessibleBase() = default;
|
||||
|
||||
// Overridables
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ class WXDLLIMPEXP_CORE wxAddRemoveAdaptor
|
|||
{
|
||||
public:
|
||||
// Default ctor and trivial but virtual dtor.
|
||||
wxAddRemoveAdaptor() { }
|
||||
virtual ~wxAddRemoveAdaptor() { }
|
||||
wxAddRemoveAdaptor() = default;
|
||||
virtual ~wxAddRemoveAdaptor() = default;
|
||||
|
||||
// Override to return the associated control.
|
||||
virtual wxWindow* GetItemsCtrl() const = 0;
|
||||
|
|
|
|||
|
|
@ -38,8 +38,8 @@ struct wxMatrix2D
|
|||
class WXDLLIMPEXP_CORE wxAffineMatrix2DBase
|
||||
{
|
||||
public:
|
||||
wxAffineMatrix2DBase() {}
|
||||
virtual ~wxAffineMatrix2DBase() {}
|
||||
wxAffineMatrix2DBase() = default;
|
||||
virtual ~wxAffineMatrix2DBase() = default;
|
||||
|
||||
// sets the matrix to the respective values
|
||||
virtual void Set(const wxMatrix2D& mat2D, const wxPoint2DDouble& tr) = 0;
|
||||
|
|
|
|||
|
|
@ -154,7 +154,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxAnimationCtrlBase : public wxControl
|
||||
{
|
||||
public:
|
||||
wxAnimationCtrlBase() { }
|
||||
wxAnimationCtrlBase() = default;
|
||||
|
||||
// public API
|
||||
virtual bool LoadFile(const wxString& filename,
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ public:
|
|||
: m_value(value)
|
||||
{
|
||||
}
|
||||
virtual ~DataHolder() { }
|
||||
virtual ~DataHolder() = default;
|
||||
|
||||
T2 m_value;
|
||||
private:
|
||||
|
|
@ -298,7 +298,7 @@ class wxAnyValueTypeImplBase : public wxAnyValueType
|
|||
|
||||
public:
|
||||
wxAnyValueTypeImplBase() : wxAnyValueType() { }
|
||||
virtual ~wxAnyValueTypeImplBase() { }
|
||||
virtual ~wxAnyValueTypeImplBase() = default;
|
||||
|
||||
virtual void DeleteValue(wxAnyValueBuffer& buf) const override
|
||||
{
|
||||
|
|
@ -348,7 +348,7 @@ class wxAnyValueTypeImpl : public wxAnyValueTypeImplBase<T>
|
|||
WX_DECLARE_ANY_VALUE_TYPE(wxAnyValueTypeImpl<T>)
|
||||
public:
|
||||
wxAnyValueTypeImpl() : wxAnyValueTypeImplBase<T>() { }
|
||||
virtual ~wxAnyValueTypeImpl() { }
|
||||
virtual ~wxAnyValueTypeImpl() = default;
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
|
|
@ -376,7 +376,7 @@ class wxAnyValueTypeImpl<T> : public wxAnyValueTypeImpl##CLSTYPE \
|
|||
typedef wxAnyBase##CLSTYPE##Type UseDataType; \
|
||||
public: \
|
||||
wxAnyValueTypeImpl() : wxAnyValueTypeImpl##CLSTYPE() { } \
|
||||
virtual ~wxAnyValueTypeImpl() { } \
|
||||
virtual ~wxAnyValueTypeImpl() = default; \
|
||||
static void SetValue(const T& value, wxAnyValueBuffer& buf) \
|
||||
{ \
|
||||
void* voidPtr = reinterpret_cast<void*>(&buf.m_buffer[0]); \
|
||||
|
|
@ -426,7 +426,7 @@ class WXDLLIMPEXP_BASE wxAnyValueTypeImplInt :
|
|||
public:
|
||||
wxAnyValueTypeImplInt() :
|
||||
wxAnyValueTypeImplBase<wxAnyBaseIntType>() { }
|
||||
virtual ~wxAnyValueTypeImplInt() { }
|
||||
virtual ~wxAnyValueTypeImplInt() = default;
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
|
|
@ -441,7 +441,7 @@ class WXDLLIMPEXP_BASE wxAnyValueTypeImplUint :
|
|||
public:
|
||||
wxAnyValueTypeImplUint() :
|
||||
wxAnyValueTypeImplBase<wxAnyBaseUintType>() { }
|
||||
virtual ~wxAnyValueTypeImplUint() { }
|
||||
virtual ~wxAnyValueTypeImplUint() = default;
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
|
|
@ -478,7 +478,7 @@ class WXDLLIMPEXP_BASE wxAnyValueTypeImpl##TYPENAME : \
|
|||
public: \
|
||||
wxAnyValueTypeImpl##TYPENAME() : \
|
||||
wxAnyValueTypeImplBase<T>() { } \
|
||||
virtual ~wxAnyValueTypeImpl##TYPENAME() { } \
|
||||
virtual ~wxAnyValueTypeImpl##TYPENAME() = default; \
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src, \
|
||||
wxAnyValueType* dstType, \
|
||||
wxAnyValueBuffer& dst) const override \
|
||||
|
|
@ -492,7 +492,7 @@ class wxAnyValueTypeImpl<T> : public wxAnyValueTypeImpl##TYPENAME \
|
|||
{ \
|
||||
public: \
|
||||
wxAnyValueTypeImpl() : wxAnyValueTypeImpl##TYPENAME() { } \
|
||||
virtual ~wxAnyValueTypeImpl() { } \
|
||||
virtual ~wxAnyValueTypeImpl() = default; \
|
||||
};
|
||||
|
||||
#define WX_ANY_DEFINE_CONVERTIBLE_TYPE(T, TYPENAME, CONVFUNC, BT) \
|
||||
|
|
@ -530,7 +530,7 @@ class WXDLLIMPEXP_BASE wxAnyValueTypeImpl<bool> :
|
|||
public:
|
||||
wxAnyValueTypeImpl() :
|
||||
wxAnyValueTypeImplBase<bool>() { }
|
||||
virtual ~wxAnyValueTypeImpl() { }
|
||||
virtual ~wxAnyValueTypeImpl() = default;
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
|
|
@ -547,7 +547,7 @@ class WXDLLIMPEXP_BASE wxAnyValueTypeImplDouble :
|
|||
public:
|
||||
wxAnyValueTypeImplDouble() :
|
||||
wxAnyValueTypeImplBase<double>() { }
|
||||
virtual ~wxAnyValueTypeImplDouble() { }
|
||||
virtual ~wxAnyValueTypeImplDouble() = default;
|
||||
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src,
|
||||
wxAnyValueType* dstType,
|
||||
|
|
@ -575,7 +575,7 @@ class DECL wxAnyValueTypeImpl<CLS> : \
|
|||
public: \
|
||||
wxAnyValueTypeImpl() : \
|
||||
wxAnyValueTypeImplBase<CLS>() { } \
|
||||
virtual ~wxAnyValueTypeImpl() { } \
|
||||
virtual ~wxAnyValueTypeImpl() = default; \
|
||||
\
|
||||
virtual bool ConvertValue(const wxAnyValueBuffer& src, \
|
||||
wxAnyValueType* dstType, \
|
||||
|
|
@ -626,7 +626,7 @@ class WXDLLIMPEXP_BASE wxAnyValueTypeImplVariantData :
|
|||
public:
|
||||
wxAnyValueTypeImplVariantData() :
|
||||
wxAnyValueTypeImplBase<wxVariantData*>() { }
|
||||
virtual ~wxAnyValueTypeImplVariantData() { }
|
||||
virtual ~wxAnyValueTypeImplVariantData() = default;
|
||||
|
||||
virtual void DeleteValue(wxAnyValueBuffer& buf) const override
|
||||
{
|
||||
|
|
@ -673,7 +673,7 @@ class wxAnyValueTypeImpl<wxVariantData*> :
|
|||
{
|
||||
public:
|
||||
wxAnyValueTypeImpl() : wxAnyValueTypeImplVariantData() { }
|
||||
virtual ~wxAnyValueTypeImpl() { }
|
||||
virtual ~wxAnyValueTypeImpl() = default;
|
||||
};
|
||||
|
||||
#endif // wxUSE_VARIANT
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
class WXDLLIMPEXP_CORE wxAnyButtonBase : public wxControl
|
||||
{
|
||||
public:
|
||||
wxAnyButtonBase() { }
|
||||
wxAnyButtonBase() = default;
|
||||
|
||||
// show the image in the button in addition to the label: this method is
|
||||
// supported on all (major) platforms
|
||||
|
|
|
|||
|
|
@ -15,8 +15,8 @@
|
|||
class WXDLLIMPEXP_CORE wxAppProgressIndicatorBase
|
||||
{
|
||||
public:
|
||||
wxAppProgressIndicatorBase() {}
|
||||
virtual ~wxAppProgressIndicatorBase() {}
|
||||
wxAppProgressIndicatorBase() = default;
|
||||
virtual ~wxAppProgressIndicatorBase() = default;
|
||||
|
||||
virtual bool IsAvailable() const = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ class WXDLLIMPEXP_BASE wxAppTraitsBase
|
|||
{
|
||||
public:
|
||||
// needed since this class declares virtual members
|
||||
virtual ~wxAppTraitsBase() { }
|
||||
virtual ~wxAppTraitsBase() = default;
|
||||
|
||||
// hooks for working with the global objects, may be overridden by the user
|
||||
// ------------------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
class WXDLLIMPEXP_BASE wxArchiveNotifier
|
||||
{
|
||||
public:
|
||||
virtual ~wxArchiveNotifier() { }
|
||||
virtual ~wxArchiveNotifier() = default;
|
||||
|
||||
virtual void OnEntryUpdated(class wxArchiveEntry& entry) = 0;
|
||||
};
|
||||
|
|
@ -37,7 +37,7 @@ public:
|
|||
class WXDLLIMPEXP_BASE wxArchiveEntry : public wxObject
|
||||
{
|
||||
public:
|
||||
virtual ~wxArchiveEntry() { }
|
||||
virtual ~wxArchiveEntry() = default;
|
||||
|
||||
virtual wxDateTime GetDateTime() const = 0;
|
||||
virtual wxFileOffset GetSize() const = 0;
|
||||
|
|
@ -92,7 +92,7 @@ class WXDLLIMPEXP_BASE wxArchiveInputStream : public wxFilterInputStream
|
|||
public:
|
||||
typedef wxArchiveEntry entry_type;
|
||||
|
||||
virtual ~wxArchiveInputStream() { }
|
||||
virtual ~wxArchiveInputStream() = default;
|
||||
|
||||
virtual bool OpenEntry(wxArchiveEntry& entry) = 0;
|
||||
virtual bool CloseEntry() = 0;
|
||||
|
|
@ -129,7 +129,7 @@ private:
|
|||
class WXDLLIMPEXP_BASE wxArchiveOutputStream : public wxFilterOutputStream
|
||||
{
|
||||
public:
|
||||
virtual ~wxArchiveOutputStream() { }
|
||||
virtual ~wxArchiveOutputStream() = default;
|
||||
|
||||
virtual bool PutNextEntry(wxArchiveEntry *entry) = 0;
|
||||
|
||||
|
|
@ -314,7 +314,7 @@ public:
|
|||
typedef wxArchiveIter iter_type;
|
||||
typedef wxArchivePairIter pairiter_type;
|
||||
|
||||
virtual ~wxArchiveClassFactory() { }
|
||||
virtual ~wxArchiveClassFactory() = default;
|
||||
|
||||
wxArchiveEntry *NewEntry() const
|
||||
{ return DoNewEntry(); }
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public:
|
|||
typedef int (wxCMPFUNC_CONV *CompareFunction)(const wxString& first,
|
||||
const wxString& second);
|
||||
|
||||
wxArrayString() { }
|
||||
wxArrayString() = default;
|
||||
wxArrayString(size_t sz, const char** a);
|
||||
wxArrayString(size_t sz, const wchar_t** a);
|
||||
wxArrayString(size_t sz, const wxString* a);
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ inline wxUint32 wxAtomicDec (wxUint32 &value) { return --value; }
|
|||
class wxAtomicInt32
|
||||
{
|
||||
public:
|
||||
wxAtomicInt32() { } // non initialized for consistency with basic int type
|
||||
wxAtomicInt32() = default; // non initialized for consistency with basic int type
|
||||
wxAtomicInt32(wxInt32 v) : m_value(v) { }
|
||||
wxAtomicInt32(const wxAtomicInt32& a) : m_value(a.m_value) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -264,8 +264,8 @@ class WXDLLIMPEXP_AUI wxAuiToolBarArt
|
|||
{
|
||||
public:
|
||||
|
||||
wxAuiToolBarArt() { }
|
||||
virtual ~wxAuiToolBarArt() { }
|
||||
wxAuiToolBarArt() = default;
|
||||
virtual ~wxAuiToolBarArt() = default;
|
||||
|
||||
virtual wxAuiToolBarArt* Clone() = 0;
|
||||
virtual void SetFlags(unsigned int flags) = 0;
|
||||
|
|
|
|||
|
|
@ -31,8 +31,8 @@ class WXDLLIMPEXP_AUI wxAuiDockArt
|
|||
{
|
||||
public:
|
||||
|
||||
wxAuiDockArt() { }
|
||||
virtual ~wxAuiDockArt() { }
|
||||
wxAuiDockArt() = default;
|
||||
virtual ~wxAuiDockArt() = default;
|
||||
|
||||
virtual wxAuiDockArt* Clone() = 0;
|
||||
virtual int GetMetric(int id) = 0;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ public:
|
|||
DefaultPane();
|
||||
}
|
||||
|
||||
~wxAuiPaneInfo() {}
|
||||
~wxAuiPaneInfo() = default;
|
||||
|
||||
// Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
|
||||
// used on loading perspectives etc.
|
||||
|
|
|
|||
|
|
@ -40,8 +40,8 @@ class WXDLLIMPEXP_AUI wxAuiTabArt
|
|||
{
|
||||
public:
|
||||
|
||||
wxAuiTabArt() { }
|
||||
virtual ~wxAuiTabArt() { }
|
||||
wxAuiTabArt() = default;
|
||||
virtual ~wxAuiTabArt() = default;
|
||||
|
||||
virtual wxAuiTabArt* Clone() = 0;
|
||||
virtual void SetFlags(unsigned int flags) = 0;
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class WXDLLIMPEXP_CORE wxBitmapHandler : public wxObject
|
|||
{
|
||||
public:
|
||||
wxBitmapHandler() { m_type = wxBITMAP_TYPE_INVALID; }
|
||||
virtual ~wxBitmapHandler() { }
|
||||
virtual ~wxBitmapHandler() = default;
|
||||
|
||||
// NOTE: the following functions should be pure virtuals, but they aren't
|
||||
// because otherwise almost all ports would have to implement
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
// ctors and such
|
||||
wxBitmapComboBoxBase() { Init(); }
|
||||
|
||||
virtual ~wxBitmapComboBoxBase() { }
|
||||
virtual ~wxBitmapComboBoxBase() = default;
|
||||
|
||||
// Sets the image for the given item.
|
||||
virtual void SetItemBitmap(unsigned int n, const wxBitmapBundle& bitmap) = 0;
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ enum wxBrushStyle
|
|||
class WXDLLIMPEXP_CORE wxBrushBase: public wxGDIObject
|
||||
{
|
||||
public:
|
||||
virtual ~wxBrushBase() { }
|
||||
virtual ~wxBrushBase() = default;
|
||||
|
||||
virtual void SetColour(const wxColour& col) = 0;
|
||||
virtual void SetColour(unsigned char r, unsigned char g, unsigned char b) = 0;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxButtonNameStr[];
|
|||
class WXDLLIMPEXP_CORE wxButtonBase : public wxAnyButton
|
||||
{
|
||||
public:
|
||||
wxButtonBase() { }
|
||||
wxButtonBase() = default;
|
||||
|
||||
// show the authentication needed symbol on the button: this is currently
|
||||
// only implemented in wxMSW where it shows the UAC shield symbol
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public:
|
|||
}
|
||||
|
||||
// a virtual dtor has been provided since this class has virtual members
|
||||
virtual ~wxCaretBase() { }
|
||||
virtual ~wxCaretBase() = default;
|
||||
|
||||
// Create() functions - same as ctor but returns the success code
|
||||
// --------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ public:
|
|||
// not used here.
|
||||
explicit Test(const std::string& name = std::string()) : m_name(name) { }
|
||||
|
||||
virtual ~Test() { }
|
||||
virtual ~Test() = default;
|
||||
|
||||
virtual void runTest() = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxCheckBoxNameStr[];
|
|||
class WXDLLIMPEXP_CORE wxCheckBoxBase : public wxControl
|
||||
{
|
||||
public:
|
||||
wxCheckBoxBase() { }
|
||||
wxCheckBoxBase() = default;
|
||||
|
||||
// set/get the checked status of the listbox
|
||||
virtual void SetValue(bool value) = 0;
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
class WXDLLIMPEXP_CORE wxCheckListBoxBase : public wxListBox
|
||||
{
|
||||
public:
|
||||
wxCheckListBoxBase() { }
|
||||
wxCheckListBoxBase() = default;
|
||||
|
||||
// check list box specific methods
|
||||
virtual bool IsChecked(unsigned int item) const = 0;
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxChoiceNameStr[];
|
|||
class WXDLLIMPEXP_CORE wxChoiceBase : public wxControlWithItems
|
||||
{
|
||||
public:
|
||||
wxChoiceBase() { }
|
||||
wxChoiceBase() = default;
|
||||
virtual ~wxChoiceBase();
|
||||
|
||||
// all generic methods are in wxControlWithItems
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_CHOICEBOOK_PAGE_CHANGING, wxBo
|
|||
class WXDLLIMPEXP_CORE wxChoicebook : public wxCompositeBookCtrlBase
|
||||
{
|
||||
public:
|
||||
wxChoicebook() { }
|
||||
wxChoicebook() = default;
|
||||
|
||||
wxChoicebook(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ using wxShadowObjectFields = std::unordered_map<wxString, void*>;
|
|||
class WXDLLIMPEXP_BASE wxShadowObject
|
||||
{
|
||||
public:
|
||||
wxShadowObject() { }
|
||||
wxShadowObject() = default;
|
||||
|
||||
void AddMethod( const wxString &name, wxShadowObjectMethod method )
|
||||
{
|
||||
|
|
@ -91,8 +91,8 @@ enum wxClientDataType
|
|||
class WXDLLIMPEXP_BASE wxClientData
|
||||
{
|
||||
public:
|
||||
wxClientData() { }
|
||||
virtual ~wxClientData() { }
|
||||
wxClientData() = default;
|
||||
virtual ~wxClientData() = default;
|
||||
};
|
||||
|
||||
class WXDLLIMPEXP_BASE wxStringClientData : public wxClientData
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ class WXDLLIMPEXP_CORE wxColourPickerWidgetBase
|
|||
{
|
||||
public:
|
||||
wxColourPickerWidgetBase() : m_colour(*wxBLACK) { }
|
||||
virtual ~wxColourPickerWidgetBase() {}
|
||||
virtual ~wxColourPickerWidgetBase() = default;
|
||||
|
||||
wxColour GetColour() const
|
||||
{ return m_colour; }
|
||||
|
|
@ -99,8 +99,8 @@ protected:
|
|||
class WXDLLIMPEXP_CORE wxColourPickerCtrl : public wxPickerBase
|
||||
{
|
||||
public:
|
||||
wxColourPickerCtrl() {}
|
||||
virtual ~wxColourPickerCtrl() {}
|
||||
wxColourPickerCtrl() = default;
|
||||
virtual ~wxColourPickerCtrl() = default;
|
||||
|
||||
|
||||
wxColourPickerCtrl(wxWindow *parent, wxWindowID id,
|
||||
|
|
@ -164,7 +164,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COLOURPICKER_DIALOG_CANCELLED,
|
|||
class WXDLLIMPEXP_CORE wxColourPickerEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
wxColourPickerEvent() {}
|
||||
wxColourPickerEvent() = default;
|
||||
wxColourPickerEvent(wxObject *generator, int id, const wxColour &col, wxEventType commandType = wxEVT_COLOURPICKER_CHANGED)
|
||||
: wxCommandEvent(commandType, id),
|
||||
m_colour(col)
|
||||
|
|
|
|||
|
|
@ -101,7 +101,7 @@ struct wxCmdLineEntryDesc
|
|||
class WXDLLIMPEXP_BASE wxCmdLineArg
|
||||
{
|
||||
public:
|
||||
virtual ~wxCmdLineArg() {}
|
||||
virtual ~wxCmdLineArg() = default;
|
||||
|
||||
virtual double GetDoubleVal() const = 0;
|
||||
virtual long GetLongVal() const = 0;
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class WXDLLIMPEXP_CORE wxCommand : public wxObject
|
|||
{
|
||||
public:
|
||||
wxCommand(bool canUndoIt = false, const wxString& name = wxEmptyString);
|
||||
virtual ~wxCommand(){}
|
||||
virtual ~wxCommand() = default;
|
||||
|
||||
// Override this to perform a command
|
||||
virtual bool Do() = 0;
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxCollapsibleHeaderCtrlNameStr[];
|
|||
class WXDLLIMPEXP_CORE wxCollapsibleHeaderCtrlBase : public wxControl
|
||||
{
|
||||
public:
|
||||
wxCollapsibleHeaderCtrlBase() { }
|
||||
wxCollapsibleHeaderCtrlBase() = default;
|
||||
|
||||
wxCollapsibleHeaderCtrlBase(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
|
@ -82,7 +82,7 @@ class WXDLLIMPEXP_CORE wxCollapsibleHeaderCtrl
|
|||
: public wxGenericCollapsibleHeaderCtrl
|
||||
{
|
||||
public:
|
||||
wxCollapsibleHeaderCtrl() { }
|
||||
wxCollapsibleHeaderCtrl() = default;
|
||||
|
||||
wxCollapsibleHeaderCtrl(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxCollapsiblePaneNameStr[];
|
|||
class WXDLLIMPEXP_CORE wxCollapsiblePaneBase : public wxControl
|
||||
{
|
||||
public:
|
||||
wxCollapsiblePaneBase() {}
|
||||
wxCollapsiblePaneBase() = default;
|
||||
|
||||
virtual void Collapse(bool collapse = true) = 0;
|
||||
void Expand() { Collapse(false); }
|
||||
|
|
@ -73,7 +73,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_COLLAPSIBLEPANE_CHANGED, wxCol
|
|||
class WXDLLIMPEXP_CORE wxCollapsiblePaneEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
wxCollapsiblePaneEvent() {}
|
||||
wxCollapsiblePaneEvent() = default;
|
||||
wxCollapsiblePaneEvent(wxObject *generator, int id, bool collapsed)
|
||||
: wxCommandEvent(wxEVT_COLLAPSIBLEPANE_CHANGED, id),
|
||||
m_bCollapsed(collapsed)
|
||||
|
|
|
|||
|
|
@ -88,8 +88,8 @@ public:
|
|||
// type of a single colour component
|
||||
typedef unsigned char ChannelType;
|
||||
|
||||
wxColourBase() {}
|
||||
virtual ~wxColourBase() {}
|
||||
wxColourBase() = default;
|
||||
virtual ~wxColourBase() = default;
|
||||
|
||||
|
||||
// Set() functions
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public:
|
|||
m_inSetFocus = false;
|
||||
m_winLastFocused = nullptr;
|
||||
}
|
||||
virtual ~wxControlContainerBase() {}
|
||||
virtual ~wxControlContainerBase() = default;
|
||||
|
||||
void SetContainerWindow(wxWindow *winParent)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxControlNameStr[];
|
|||
class WXDLLIMPEXP_CORE wxControlBase : public wxWindow
|
||||
{
|
||||
public:
|
||||
wxControlBase() { }
|
||||
wxControlBase() = default;
|
||||
|
||||
virtual ~wxControlBase();
|
||||
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxContextHelpButton : public wxBitmapButton
|
||||
{
|
||||
public:
|
||||
wxContextHelpButton() {}
|
||||
wxContextHelpButton() = default;
|
||||
|
||||
wxContextHelpButton(wxWindow* parent,
|
||||
wxWindowID id = wxID_CONTEXT_HELP,
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
class WXDLLIMPEXP_CORE wxItemContainerImmutable
|
||||
{
|
||||
public:
|
||||
wxItemContainerImmutable() { }
|
||||
wxItemContainerImmutable() = default;
|
||||
virtual ~wxItemContainerImmutable();
|
||||
|
||||
// accessing strings
|
||||
|
|
@ -415,7 +415,7 @@ public:
|
|||
typedef W BaseWindowClass;
|
||||
typedef C BaseContainerInterface;
|
||||
|
||||
wxWindowWithItems() { }
|
||||
wxWindowWithItems() = default;
|
||||
|
||||
void SetClientData(void *data)
|
||||
{ BaseWindowClass::SetClientData(data); }
|
||||
|
|
@ -440,7 +440,7 @@ class WXDLLIMPEXP_CORE wxControlWithItemsBase :
|
|||
public wxWindowWithItems<wxControl, wxItemContainer>
|
||||
{
|
||||
public:
|
||||
wxControlWithItemsBase() { }
|
||||
wxControlWithItemsBase() = default;
|
||||
|
||||
// usually the controls like list/combo boxes have their own background
|
||||
// colour
|
||||
|
|
@ -472,7 +472,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxControlWithItems : public wxControlWithItemsBase
|
||||
{
|
||||
public:
|
||||
wxControlWithItems() { }
|
||||
wxControlWithItems() = default;
|
||||
|
||||
private:
|
||||
wxDECLARE_ABSTRACT_CLASS(wxControlWithItems);
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ class wxCustomBackgroundWindowBase
|
|||
{
|
||||
public:
|
||||
// Trivial default ctor.
|
||||
wxCustomBackgroundWindowBase() { }
|
||||
wxCustomBackgroundWindowBase() = default;
|
||||
|
||||
// Also a trivial but virtual -- to suppress g++ warnings -- dtor.
|
||||
virtual ~wxCustomBackgroundWindowBase() { }
|
||||
virtual ~wxCustomBackgroundWindowBase() = default;
|
||||
|
||||
// Use the given bitmap to tile the background of this window. This bitmap
|
||||
// will show through any transparent children.
|
||||
|
|
|
|||
|
|
@ -1402,7 +1402,7 @@ class WXDLLIMPEXP_CORE wxDataViewTreeCtrl: public wxDataViewCtrl,
|
|||
public wxWithImages
|
||||
{
|
||||
public:
|
||||
wxDataViewTreeCtrl() { }
|
||||
wxDataViewTreeCtrl() = default;
|
||||
wxDataViewTreeCtrl(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ typedef wxDatePickerCtrlCommonBase<wxDateTimePickerCtrl> wxDatePickerCtrlBase;
|
|||
class WXDLLIMPEXP_ADV wxDatePickerCtrl : public wxDatePickerCtrlGeneric
|
||||
{
|
||||
public:
|
||||
wxDatePickerCtrl() { }
|
||||
wxDatePickerCtrl() = default;
|
||||
wxDatePickerCtrl(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxDateTime& date = wxDefaultDateTime,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
class WXDLLIMPEXP_ADV wxDateEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
wxDateEvent() { }
|
||||
wxDateEvent() = default;
|
||||
wxDateEvent(wxWindow *win, const wxDateTime& dt, wxEventType type)
|
||||
: wxCommandEvent(type, win->GetId()),
|
||||
m_date(dt)
|
||||
|
|
|
|||
|
|
@ -1226,7 +1226,7 @@ public:
|
|||
static wxTimeSpan Week() { return Weeks(1); }
|
||||
|
||||
// default ctor constructs the 0 time span
|
||||
wxTimeSpan() { }
|
||||
wxTimeSpan() = default;
|
||||
|
||||
// from separate values for each component, date set to 0 (hours are
|
||||
// not restricted to 0..24 range, neither are minutes, seconds or
|
||||
|
|
|
|||
|
|
@ -114,8 +114,8 @@ class WXDLLIMPEXP_FWD_CORE wxDCImpl;
|
|||
class WXDLLIMPEXP_CORE wxDCFactory
|
||||
{
|
||||
public:
|
||||
wxDCFactory() {}
|
||||
virtual ~wxDCFactory() {}
|
||||
wxDCFactory() = default;
|
||||
virtual ~wxDCFactory() = default;
|
||||
|
||||
virtual wxDCImpl* CreateWindowDC( wxWindowDC *owner, wxWindow *window ) = 0;
|
||||
virtual wxDCImpl* CreateClientDC( wxClientDC *owner, wxWindow *window ) = 0;
|
||||
|
|
@ -142,7 +142,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxNativeDCFactory: public wxDCFactory
|
||||
{
|
||||
public:
|
||||
wxNativeDCFactory() {}
|
||||
wxNativeDCFactory() = default;
|
||||
|
||||
virtual wxDCImpl* CreateWindowDC( wxWindowDC *owner, wxWindow *window ) override;
|
||||
virtual wxDCImpl* CreateClientDC( wxClientDC *owner, wxWindow *window ) override;
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ public:
|
|||
);
|
||||
}
|
||||
|
||||
virtual ~wxAutoBufferedPaintDC() { }
|
||||
virtual ~wxAutoBufferedPaintDC() = default;
|
||||
|
||||
private:
|
||||
wxDECLARE_NO_COPY_CLASS(wxAutoBufferedPaintDC);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public:
|
|||
wxCoord x, wxCoord y,
|
||||
wxOutputStream& stream) const = 0;
|
||||
|
||||
virtual ~wxSVGBitmapHandler() {}
|
||||
virtual ~wxSVGBitmapHandler() = default;
|
||||
};
|
||||
|
||||
// Predefined standard bitmap handler: creates a file, stores the bitmap in
|
||||
|
|
|
|||
|
|
@ -137,7 +137,7 @@ private:
|
|||
class WXDLLIMPEXP_QA wxDebugReportCompress : public wxDebugReport
|
||||
{
|
||||
public:
|
||||
wxDebugReportCompress() { }
|
||||
wxDebugReportCompress() = default;
|
||||
|
||||
// you can optionally specify the directory and/or name of the file where
|
||||
// the debug report should be generated, a default location under the
|
||||
|
|
@ -222,7 +222,7 @@ class WXDLLIMPEXP_QA wxDebugReportPreview
|
|||
{
|
||||
public:
|
||||
// ctor is trivial
|
||||
wxDebugReportPreview() { }
|
||||
wxDebugReportPreview() = default;
|
||||
|
||||
// present the report to the user and allow him to modify it by removing
|
||||
// some or all of the files and, potentially, adding some notes
|
||||
|
|
@ -232,7 +232,7 @@ public:
|
|||
virtual bool Show(wxDebugReport& dbgrpt) const = 0;
|
||||
|
||||
// dtor is trivial as well but should be virtual for a base class
|
||||
virtual ~wxDebugReportPreview() { }
|
||||
virtual ~wxDebugReportPreview() = default;
|
||||
};
|
||||
|
||||
#if wxUSE_GUI
|
||||
|
|
@ -244,7 +244,7 @@ public:
|
|||
class WXDLLIMPEXP_QA wxDebugReportPreviewStd : public wxDebugReportPreview
|
||||
{
|
||||
public:
|
||||
wxDebugReportPreviewStd() { }
|
||||
wxDebugReportPreviewStd() = default;
|
||||
|
||||
virtual bool Show(wxDebugReport& dbgrpt) const override;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ wxDFB_DECLARE_INTERFACE(IDirectFBSurface);
|
|||
class WXDLLIMPEXP_CORE wxBitmap : public wxBitmapBase
|
||||
{
|
||||
public:
|
||||
wxBitmap() {}
|
||||
wxBitmap() = default;
|
||||
wxBitmap(const wxIDirectFBSurfacePtr& surface) { Create(surface); }
|
||||
wxBitmap(int width, int height, int depth = -1) { Create(width, height, depth); }
|
||||
wxBitmap(const wxSize& sz, int depth = -1) { Create(sz, depth); }
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class WXDLLIMPEXP_FWD_CORE wxBrush;
|
|||
class WXDLLIMPEXP_CORE wxBrush : public wxBrushBase
|
||||
{
|
||||
public:
|
||||
wxBrush() {}
|
||||
wxBrush() = default;
|
||||
wxBrush(const wxColour &colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID);
|
||||
wxBrush(const wxBitmap &stippleBitmap);
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class WXDLLIMPEXP_FWD_CORE wxImage;
|
|||
class WXDLLIMPEXP_CORE wxCursor : public wxCursorBase
|
||||
{
|
||||
public:
|
||||
wxCursor() {}
|
||||
wxCursor() = default;
|
||||
wxCursor(wxStockCursor id) { InitFromStock(id); }
|
||||
#if wxUSE_IMAGE
|
||||
wxCursor(const wxImage& image);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ wxDFB_DECLARE_INTERFACE(IDirectFBFont);
|
|||
class WXDLLIMPEXP_CORE wxFont : public wxFontBase
|
||||
{
|
||||
public:
|
||||
wxFont() {}
|
||||
wxFont() = default;
|
||||
|
||||
wxFont(const wxFontInfo& info)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ class WXDLLIMPEXP_FWD_CORE wxPen;
|
|||
class WXDLLIMPEXP_CORE wxPen: public wxPenBase
|
||||
{
|
||||
public:
|
||||
wxPen() {}
|
||||
wxPen() = default;
|
||||
wxPen(const wxColour &colour, int width = 1, wxPenStyle style = wxPENSTYLE_SOLID);
|
||||
|
||||
wxPen(const wxBitmap& stipple, int width);
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
|
||||
{
|
||||
public:
|
||||
wxPopupWindow() {}
|
||||
wxPopupWindow() = default;
|
||||
|
||||
wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE)
|
||||
{ Create(parent, flags); }
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ protected:
|
|||
class WXDLLIMPEXP_CORE wxRegionIterator : public wxObject
|
||||
{
|
||||
public:
|
||||
wxRegionIterator() {}
|
||||
wxRegionIterator() = default;
|
||||
wxRegionIterator(const wxRegion& region) { Reset(region); }
|
||||
|
||||
void Reset() { m_rect = wxRect(); }
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ bool wxDfbCheckReturn(DFBResult code);
|
|||
#define WXDFB_DEFINE_EVENT_WRAPPER(T) \
|
||||
struct wx##T \
|
||||
{ \
|
||||
wx##T() {} \
|
||||
wx##T() = default; \
|
||||
wx##T(const T& event) : m_event(event) {} \
|
||||
\
|
||||
operator T&() { return m_event; } \
|
||||
|
|
@ -103,7 +103,7 @@ protected:
|
|||
wxDfbWrapperBase() : m_refCnt(1), m_lastResult(DFB_OK) {}
|
||||
|
||||
/// Dtor may only be called from Release()
|
||||
virtual ~wxDfbWrapperBase() {}
|
||||
virtual ~wxDfbWrapperBase() = default;
|
||||
|
||||
/**
|
||||
Checks the @a result of a DirectFB call and returns true if it was
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ class WXDLLIMPEXP_CORE wxDialogBase : public wxNavigationEnabled<wxTopLevelWindo
|
|||
{
|
||||
public:
|
||||
wxDialogBase();
|
||||
virtual ~wxDialogBase() { }
|
||||
virtual ~wxDialogBase() = default;
|
||||
|
||||
// define public wxDialog methods to be implemented by the derived classes
|
||||
virtual int ShowModal() = 0;
|
||||
|
|
@ -300,7 +300,7 @@ class WXDLLIMPEXP_CORE wxDialogLayoutAdapter: public wxObject
|
|||
{
|
||||
wxDECLARE_CLASS(wxDialogLayoutAdapter);
|
||||
public:
|
||||
wxDialogLayoutAdapter() {}
|
||||
wxDialogLayoutAdapter() = default;
|
||||
|
||||
// Override this function to indicate that adaptation should be done
|
||||
virtual bool CanDoLayoutAdaptation(wxDialog* dialog) = 0;
|
||||
|
|
@ -318,7 +318,7 @@ class WXDLLIMPEXP_CORE wxStandardDialogLayoutAdapter: public wxDialogLayoutAdapt
|
|||
{
|
||||
wxDECLARE_CLASS(wxStandardDialogLayoutAdapter);
|
||||
public:
|
||||
wxStandardDialogLayoutAdapter() {}
|
||||
wxStandardDialogLayoutAdapter() = default;
|
||||
|
||||
// Overrides
|
||||
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public:
|
|||
virtual bool IsOk() const = 0;
|
||||
|
||||
// virtual dtor for any base class
|
||||
virtual ~wxDialUpManager() { }
|
||||
virtual ~wxDialUpManager() = default;
|
||||
|
||||
// operations
|
||||
// ----------
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class WXDLLIMPEXP_BASE wxDirTraverser
|
|||
{
|
||||
public:
|
||||
/// a virtual dtor has been provided since this class has virtual members
|
||||
virtual ~wxDirTraverser() { }
|
||||
virtual ~wxDirTraverser() = default;
|
||||
// called for each file found by wxDir::Traverse()
|
||||
//
|
||||
// return wxDIR_STOP or wxDIR_CONTINUE from here (wxDIR_IGNORE doesn't
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxDirSelectorPromptStr[];
|
|||
class WXDLLIMPEXP_CORE wxDirDialogBase : public wxDialog
|
||||
{
|
||||
public:
|
||||
wxDirDialogBase() {}
|
||||
wxDirDialogBase() = default;
|
||||
wxDirDialogBase(wxWindow *parent,
|
||||
const wxString& title = wxASCII_STR(wxDirSelectorPromptStr),
|
||||
const wxString& defaultPath = wxEmptyString,
|
||||
|
|
@ -65,7 +65,7 @@ public:
|
|||
Create(parent, title, defaultPath, style, pos, sz, name);
|
||||
}
|
||||
|
||||
virtual ~wxDirDialogBase() {}
|
||||
virtual ~wxDirDialogBase() = default;
|
||||
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public:
|
|||
m_cursorMove(cursorMove),
|
||||
m_cursorStop(cursorStop)
|
||||
{ m_data = nullptr; }
|
||||
virtual ~wxDropSourceBase() { }
|
||||
virtual ~wxDropSourceBase() = default;
|
||||
|
||||
// set the data which is transferred by drag and drop
|
||||
void SetData(wxDataObject& data)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ typedef
|
|||
class WXDLLIMPEXP_CORE wxDocMDIChildFrame : public wxDocMDIChildFrameBase
|
||||
{
|
||||
public:
|
||||
wxDocMDIChildFrame() { }
|
||||
wxDocMDIChildFrame() = default;
|
||||
|
||||
wxDocMDIChildFrame(wxDocument *doc,
|
||||
wxView *view,
|
||||
|
|
|
|||
|
|
@ -674,7 +674,7 @@ public:
|
|||
typedef ChildFrame BaseClass;
|
||||
|
||||
// default ctor, use Create after it
|
||||
wxDocChildFrameAny() { }
|
||||
wxDocChildFrameAny() = default;
|
||||
|
||||
// ctor for a frame showing the given view of the specified document
|
||||
wxDocChildFrameAny(wxDocument *doc,
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ enum wxDataViewCellRenderState
|
|||
class WXDLLIMPEXP_CORE wxDataViewValueAdjuster
|
||||
{
|
||||
public:
|
||||
virtual ~wxDataViewValueAdjuster() {}
|
||||
virtual ~wxDataViewValueAdjuster() = default;
|
||||
|
||||
// changes the value to have appearance suitable for highlighted rows
|
||||
virtual wxVariant MakeHighlighted(const wxVariant& value) const { return value; }
|
||||
|
|
|
|||
|
|
@ -461,7 +461,7 @@ private:
|
|||
void (Class::*m_method)(EventArg&);
|
||||
|
||||
// Provide a dummy default ctor for type info purposes
|
||||
wxEventFunctorMethod() { }
|
||||
wxEventFunctorMethod() = default;
|
||||
|
||||
typedef wxEventFunctorMethod<EventTag, Class,
|
||||
EventArg, EventHandler> thisClass;
|
||||
|
|
@ -517,7 +517,7 @@ private:
|
|||
void (*m_handler)(EventArg&);
|
||||
|
||||
// Provide a dummy default ctor for type info purposes
|
||||
wxEventFunctorFunction() { }
|
||||
wxEventFunctorFunction() = default;
|
||||
|
||||
typedef wxEventFunctorFunction<EventTag, EventArg> thisClass;
|
||||
WX_DECLARE_TYPEINFO_INLINE(thisClass)
|
||||
|
|
@ -569,7 +569,7 @@ private:
|
|||
const void *m_handlerAddr;
|
||||
|
||||
// Provide a dummy default ctor for type info purposes
|
||||
wxEventFunctorFunctor() { }
|
||||
wxEventFunctorFunctor() = default;
|
||||
|
||||
typedef wxEventFunctorFunctor<EventTag, Functor> thisClass;
|
||||
WX_DECLARE_TYPEINFO_INLINE(thisClass)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public:
|
|||
virtual void OnExceptionWaiting() = 0;
|
||||
|
||||
// virtual dtor for the base class
|
||||
virtual ~wxEventLoopSourceHandler() { }
|
||||
virtual ~wxEventLoopSourceHandler() = default;
|
||||
};
|
||||
|
||||
// flags describing which kind of IO events we're interested in
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ class WXDLLIMPEXP_BASE wxTempFFile
|
|||
public:
|
||||
// ctors
|
||||
// default
|
||||
wxTempFFile() { }
|
||||
wxTempFFile() = default;
|
||||
// associates the temp file with the file to be replaced and opens it
|
||||
explicit wxTempFFile(const wxString& strName);
|
||||
|
||||
|
|
|
|||
|
|
@ -144,7 +144,7 @@ class WXDLLIMPEXP_BASE wxTempFile
|
|||
public:
|
||||
// ctors
|
||||
// default
|
||||
wxTempFile() { }
|
||||
wxTempFile() = default;
|
||||
// associates the temp file with the file to be replaced and opens it
|
||||
explicit wxTempFile(const wxString& strName);
|
||||
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxFileCtrlNameStr[]; // in filectrlcmn.
|
|||
class WXDLLIMPEXP_CORE wxFileCtrlBase
|
||||
{
|
||||
public:
|
||||
virtual ~wxFileCtrlBase() {}
|
||||
virtual ~wxFileCtrlBase() = default;
|
||||
|
||||
virtual void SetWildcard( const wxString& wildCard ) = 0;
|
||||
virtual void SetFilterIndex( int filterindex ) = 0;
|
||||
|
|
@ -89,7 +89,7 @@ void wxGenerateFileActivatedEvent( wxFileCtrlBase *fileCtrl, wxWindow *wnd, cons
|
|||
class WXDLLIMPEXP_CORE wxFileCtrlEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
wxFileCtrlEvent() {}
|
||||
wxFileCtrlEvent() = default;
|
||||
wxFileCtrlEvent( wxEventType type, wxObject *evtObject, int id )
|
||||
: wxCommandEvent( type, id )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -89,7 +89,7 @@ public:
|
|||
Create(parent, message, defaultDir, defaultFile, wildCard, style, pos, sz, name);
|
||||
}
|
||||
|
||||
virtual ~wxFileDialogBase() {}
|
||||
virtual ~wxFileDialogBase() = default;
|
||||
|
||||
|
||||
bool Create(wxWindow *parent,
|
||||
|
|
|
|||
|
|
@ -583,7 +583,7 @@ private:
|
|||
class WXDLLIMPEXP_BASE wxPathList : public wxArrayString
|
||||
{
|
||||
public:
|
||||
wxPathList() {}
|
||||
wxPathList() = default;
|
||||
wxPathList(const wxArrayString &arr)
|
||||
{ Add(arr); }
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ extern WXDLLIMPEXP_DATA_CORE(const char) wxDirSelectorPromptStr[];
|
|||
class WXDLLIMPEXP_CORE wxFileDirPickerEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
wxFileDirPickerEvent() {}
|
||||
wxFileDirPickerEvent() = default;
|
||||
wxFileDirPickerEvent(wxEventType type, wxObject *generator, int id, const wxString &path)
|
||||
: wxCommandEvent(type, id),
|
||||
m_path(path)
|
||||
|
|
@ -82,8 +82,8 @@ typedef void (wxEvtHandler::*wxFileDirPickerEventFunction)(wxFileDirPickerEvent&
|
|||
class WXDLLIMPEXP_CORE wxFileDirPickerWidgetBase
|
||||
{
|
||||
public:
|
||||
wxFileDirPickerWidgetBase() { }
|
||||
virtual ~wxFileDirPickerWidgetBase() { }
|
||||
wxFileDirPickerWidgetBase() = default;
|
||||
virtual ~wxFileDirPickerWidgetBase() = default;
|
||||
|
||||
// Path here is the name of the selected file or directory.
|
||||
wxString GetPath() const { return m_path; }
|
||||
|
|
@ -232,7 +232,7 @@ protected:
|
|||
class WXDLLIMPEXP_CORE wxFilePickerCtrl : public wxFileDirPickerCtrlBase
|
||||
{
|
||||
public:
|
||||
wxFilePickerCtrl() {}
|
||||
wxFilePickerCtrl() = default;
|
||||
|
||||
wxFilePickerCtrl(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
|
@ -337,7 +337,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxDirPickerCtrl : public wxFileDirPickerCtrlBase
|
||||
{
|
||||
public:
|
||||
wxDirPickerCtrl() {}
|
||||
wxDirPickerCtrl() = default;
|
||||
|
||||
wxDirPickerCtrl(wxWindow *parent, wxWindowID id,
|
||||
const wxString& path = wxEmptyString,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class WXDLLIMPEXP_CORE wxFontDialogBase : public wxDialog
|
|||
{
|
||||
public:
|
||||
// create the font dialog
|
||||
wxFontDialogBase() { }
|
||||
wxFontDialogBase() = default;
|
||||
wxFontDialogBase(wxWindow *parent) { m_parent = parent; }
|
||||
wxFontDialogBase(wxWindow *parent, const wxFontData& data)
|
||||
{ m_parent = parent; InitFontData(&data); }
|
||||
|
|
|
|||
|
|
@ -27,10 +27,10 @@
|
|||
class WXDLLIMPEXP_CORE wxFontEnumerator
|
||||
{
|
||||
public:
|
||||
wxFontEnumerator() {}
|
||||
wxFontEnumerator() = default;
|
||||
|
||||
// virtual dtor for the base class
|
||||
virtual ~wxFontEnumerator() {}
|
||||
virtual ~wxFontEnumerator() = default;
|
||||
|
||||
// start enumerating font facenames (either all of them or those which
|
||||
// support the given encoding) - will result in OnFacename() being
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class WXDLLIMPEXP_CORE wxFontPickerWidgetBase
|
|||
{
|
||||
public:
|
||||
wxFontPickerWidgetBase() : m_selectedFont(*wxNORMAL_FONT) { }
|
||||
virtual ~wxFontPickerWidgetBase() {}
|
||||
virtual ~wxFontPickerWidgetBase() = default;
|
||||
|
||||
wxFont GetSelectedFont() const
|
||||
{ return m_selectedFont; }
|
||||
|
|
@ -106,7 +106,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual ~wxFontPickerCtrl() {}
|
||||
virtual ~wxFontPickerCtrl() = default;
|
||||
|
||||
|
||||
wxFontPickerCtrl(wxWindow *parent,
|
||||
|
|
@ -200,7 +200,7 @@ wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_CORE, wxEVT_FONTPICKER_CHANGED, wxFontPick
|
|||
class WXDLLIMPEXP_CORE wxFontPickerEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
wxFontPickerEvent() {}
|
||||
wxFontPickerEvent() = default;
|
||||
wxFontPickerEvent(wxObject *generator, int id, const wxFont &f)
|
||||
: wxCommandEvent(wxEVT_FONTPICKER_CHANGED, id),
|
||||
m_font(f)
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class WXDLLIMPEXP_BASE wxFilterFSHandler : public wxFileSystemHandler
|
|||
{
|
||||
public:
|
||||
wxFilterFSHandler() : wxFileSystemHandler() { }
|
||||
virtual ~wxFilterFSHandler() { }
|
||||
virtual ~wxFilterFSHandler() = default;
|
||||
|
||||
virtual bool CanOpen(const wxString& location) override;
|
||||
virtual wxFSFile* OpenFile(wxFileSystem& fs, const wxString& location) override;
|
||||
|
|
|
|||
|
|
@ -948,7 +948,7 @@ wxDEPRECATED_MSG("Use wxList directly or just a standard container")
|
|||
wxResourceCache : public wxList
|
||||
{
|
||||
public:
|
||||
wxResourceCache() { }
|
||||
wxResourceCache() = default;
|
||||
#if !wxUSE_STD_CONTAINERS
|
||||
wxResourceCache(unsigned int keyType) : wxList(keyType) { }
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ class WXDLLIMPEXP_CORE wxGDIRefData : public wxObjectRefData
|
|||
public:
|
||||
// Default ctor which needs to be defined just because we use
|
||||
// wxDECLARE_NO_COPY_CLASS() below.
|
||||
wxGDIRefData() { }
|
||||
wxGDIRefData() = default;
|
||||
|
||||
// override this in the derived classes to check if this data object is
|
||||
// really fully initialized
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxMultiChoiceDialog : public wxAnyChoiceDialog
|
||||
{
|
||||
public:
|
||||
wxMultiChoiceDialog() { }
|
||||
wxMultiChoiceDialog() = default;
|
||||
|
||||
wxMultiChoiceDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class WXDLLIMPEXP_CORE wxGenericColourButton : public wxBitmapButton,
|
|||
public wxColourPickerWidgetBase
|
||||
{
|
||||
public:
|
||||
wxGenericColourButton() {}
|
||||
wxGenericColourButton() = default;
|
||||
wxGenericColourButton(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxColour& col = *wxBLACK,
|
||||
|
|
@ -37,7 +37,7 @@ public:
|
|||
Create(parent, id, col, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
virtual ~wxGenericColourButton() {}
|
||||
virtual ~wxGenericColourButton() = default;
|
||||
|
||||
|
||||
public: // API extensions specific for wxGenericColourButton
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ public:
|
|||
(void)Create(parent, id, value, pos, size, style, validator, name);
|
||||
}
|
||||
|
||||
virtual ~wxComboCtrl() {}
|
||||
virtual ~wxComboCtrl() = default;
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
class wxControlWithItemsGeneric : public wxControlWithItemsBase
|
||||
{
|
||||
public:
|
||||
wxControlWithItemsGeneric() { }
|
||||
wxControlWithItemsGeneric() = default;
|
||||
|
||||
virtual void DoInitItemClientData()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
class wxCustomBackgroundWindowGenericBase : public wxCustomBackgroundWindowBase
|
||||
{
|
||||
public:
|
||||
wxCustomBackgroundWindowGenericBase() { }
|
||||
wxCustomBackgroundWindowGenericBase() = default;
|
||||
|
||||
protected:
|
||||
void DoEraseBackground(wxEraseEvent& event, wxWindow* win)
|
||||
|
|
@ -58,7 +58,7 @@ class wxCustomBackgroundWindow : public W,
|
|||
public:
|
||||
typedef W BaseWindowClass;
|
||||
|
||||
wxCustomBackgroundWindow() { }
|
||||
wxCustomBackgroundWindow() = default;
|
||||
|
||||
protected:
|
||||
virtual void DoSetBackgroundBitmap(const wxBitmap& bmp) override
|
||||
|
|
|
|||
|
|
@ -436,7 +436,7 @@ class WXDLLIMPEXP_CORE wxDataViewCtrlAccessible: public wxWindowAccessible
|
|||
{
|
||||
public:
|
||||
wxDataViewCtrlAccessible(wxDataViewCtrl* win);
|
||||
virtual ~wxDataViewCtrlAccessible() {}
|
||||
virtual ~wxDataViewCtrlAccessible() = default;
|
||||
|
||||
virtual wxAccStatus HitTest(const wxPoint& pt, int* childId,
|
||||
wxAccessible** childObject) override;
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class WXDLLIMPEXP_CORE wxDirItemData : public wxTreeItemData
|
|||
{
|
||||
public:
|
||||
wxDirItemData(const wxString& path, const wxString& name, bool isDir);
|
||||
virtual ~wxDirItemData(){}
|
||||
virtual ~wxDirItemData() = default;
|
||||
void SetNewDirName(const wxString& path);
|
||||
|
||||
bool HasSubDirs() const;
|
||||
|
|
@ -245,7 +245,7 @@ public:
|
|||
|
||||
void Init();
|
||||
|
||||
virtual ~wxDirFilterListCtrl() {}
|
||||
virtual ~wxDirFilterListCtrl() = default;
|
||||
|
||||
//// Operations
|
||||
void FillFilterList(const wxString& filter, int defaultFilter);
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ public:
|
|||
style, pos, size, name );
|
||||
}
|
||||
|
||||
virtual ~wxGenericFileCtrl() {}
|
||||
virtual ~wxGenericFileCtrl() = default;
|
||||
|
||||
bool Create( wxWindow *parent,
|
||||
wxWindowID id,
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxFileDialog: public wxGenericFileDialog
|
||||
{
|
||||
public:
|
||||
wxFileDialog() {}
|
||||
wxFileDialog() = default;
|
||||
|
||||
wxFileDialog(wxWindow *parent,
|
||||
const wxString& message = wxASCII_STR(wxFileSelectorPromptStr),
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxGenericFileButton : public wxGenericFileDirButton
|
||||
{
|
||||
public:
|
||||
wxGenericFileButton() {}
|
||||
wxGenericFileButton() = default;
|
||||
wxGenericFileButton(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& label = wxASCII_STR(wxFilePickerWidgetLabel),
|
||||
|
|
@ -168,7 +168,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxGenericDirButton : public wxGenericFileDirButton
|
||||
{
|
||||
public:
|
||||
wxGenericDirButton() {}
|
||||
wxGenericDirButton() = default;
|
||||
wxGenericDirButton(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxString& label = wxASCII_STR(wxDirPickerWidgetLabel),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ class WXDLLIMPEXP_CORE wxGenericFontButton : public wxButton,
|
|||
public wxFontPickerWidgetBase
|
||||
{
|
||||
public:
|
||||
wxGenericFontButton() {}
|
||||
wxGenericFontButton() = default;
|
||||
wxGenericFontButton(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxFont &initial = wxNullFont,
|
||||
|
|
@ -40,7 +40,7 @@ public:
|
|||
virtual void SetSelectedColour(const wxColour &colour) override
|
||||
{ m_data.SetColour(colour); UpdateFont(); }
|
||||
|
||||
virtual ~wxGenericFontButton() {}
|
||||
virtual ~wxGenericFontButton() = default;
|
||||
|
||||
|
||||
public: // API extensions specific for wxGenericFontButton
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ class WXDLLIMPEXP_CORE wxGridCellWorker : public wxSharedClientDataContainer,
|
|||
public wxRefCounter
|
||||
{
|
||||
public:
|
||||
wxGridCellWorker() { }
|
||||
wxGridCellWorker() = default;
|
||||
|
||||
wxGridCellWorker(const wxGridCellWorker& other);
|
||||
|
||||
|
|
@ -593,7 +593,7 @@ public:
|
|||
class WXDLLIMPEXP_CORE wxGridHeaderLabelsRenderer
|
||||
{
|
||||
public:
|
||||
virtual ~wxGridHeaderLabelsRenderer() {}
|
||||
virtual ~wxGridHeaderLabelsRenderer() = default;
|
||||
|
||||
// Draw the border around cell window.
|
||||
virtual void DrawBorder(const wxGrid& grid,
|
||||
|
|
@ -1464,7 +1464,7 @@ using wxUnsignedToIntHashMap = std::unordered_map<unsigned, int>;
|
|||
struct WXDLLIMPEXP_CORE wxGridSizesInfo
|
||||
{
|
||||
// default ctor, initialize m_sizeDefault and m_customSizes later
|
||||
wxGridSizesInfo() { }
|
||||
wxGridSizesInfo() = default;
|
||||
|
||||
// ctor used by wxGrid::Get{Col,Row}Sizes()
|
||||
wxGridSizesInfo(int defSize, const wxArrayInt& allSizes);
|
||||
|
|
|
|||
|
|
@ -415,7 +415,7 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
virtual ~wxGridCellEnumEditor() {}
|
||||
virtual ~wxGridCellEnumEditor() = default;
|
||||
|
||||
virtual wxGridCellEditor* Clone() const override
|
||||
{ return new wxGridCellEnumEditor(*this); }
|
||||
|
|
|
|||
|
|
@ -207,7 +207,7 @@ class WXDLLIMPEXP_FWD_CORE wxFrame;
|
|||
class WXDLLIMPEXP_CORE wxLayoutAlgorithm: public wxObject
|
||||
{
|
||||
public:
|
||||
wxLayoutAlgorithm() {}
|
||||
wxLayoutAlgorithm() = default;
|
||||
|
||||
#if wxUSE_MDI_ARCHITECTURE
|
||||
// The MDI client window is sized to whatever's left over.
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ class WXDLLIMPEXP_CORE wxListCtrl: public wxGenericListCtrl
|
|||
wxDECLARE_DYNAMIC_CLASS(wxListCtrl);
|
||||
|
||||
public:
|
||||
wxListCtrl() {}
|
||||
wxListCtrl() = default;
|
||||
|
||||
wxListCtrl(wxWindow *parent, wxWindowID winid = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
class WXDLLIMPEXP_CORE wxMask : public wxMaskBase
|
||||
{
|
||||
public:
|
||||
wxMask() { }
|
||||
wxMask() = default;
|
||||
wxMask(const wxBitmap& bitmap, const wxColour& colour)
|
||||
{
|
||||
InitFromColour(bitmap, colour);
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxGenericMDIClientWindow : public wxMDIClientWindowBase
|
||||
{
|
||||
public:
|
||||
wxGenericMDIClientWindow() { }
|
||||
wxGenericMDIClientWindow() = default;
|
||||
|
||||
// unfortunately we need to provide our own version of CreateClient()
|
||||
// because of the difference in the type of the first parameter and
|
||||
|
|
|
|||
|
|
@ -460,7 +460,7 @@ class WXDLLIMPEXP_ADV wxGridRowOrColAttrData
|
|||
{
|
||||
public:
|
||||
// empty ctor to suppress warnings
|
||||
wxGridRowOrColAttrData() {}
|
||||
wxGridRowOrColAttrData() = default;
|
||||
~wxGridRowOrColAttrData();
|
||||
|
||||
void SetAttr(wxGridCellAttr *attr, int rowOrCol);
|
||||
|
|
@ -663,7 +663,7 @@ public:
|
|||
|
||||
// This class is never used polymorphically but give it a virtual dtor
|
||||
// anyhow to suppress g++ complaints about it
|
||||
virtual ~wxGridOperations() { }
|
||||
virtual ~wxGridOperations() = default;
|
||||
};
|
||||
|
||||
class wxGridRowOperations : public wxGridOperations
|
||||
|
|
@ -1022,7 +1022,7 @@ public:
|
|||
|
||||
// This class is never used polymorphically but give it a virtual dtor
|
||||
// anyhow to suppress g++ complaints about it
|
||||
virtual ~wxGridDirectionOperations() { }
|
||||
virtual ~wxGridDirectionOperations() = default;
|
||||
|
||||
protected:
|
||||
// Get the position of the row or column from the given coordinates pair.
|
||||
|
|
@ -1190,7 +1190,7 @@ WX_DEFINE_ARRAY_WITH_DECL_PTR(wxGridDataTypeInfo*, wxGridDataTypeInfoArray,
|
|||
class WXDLLIMPEXP_ADV wxGridTypeRegistry
|
||||
{
|
||||
public:
|
||||
wxGridTypeRegistry() {}
|
||||
wxGridTypeRegistry() = default;
|
||||
~wxGridTypeRegistry();
|
||||
|
||||
void RegisterDataType(const wxString& typeName,
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class wxMarkupParserOutput;
|
|||
class WXDLLIMPEXP_CORE wxMarkupTextBase
|
||||
{
|
||||
public:
|
||||
virtual ~wxMarkupTextBase() {}
|
||||
virtual ~wxMarkupTextBase() = default;
|
||||
|
||||
// Update the markup string.
|
||||
void SetMarkup(const wxString& markup) { m_markup = markup; }
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
class WXDLLIMPEXP_CORE wxGenericStaticBitmap : public wxStaticBitmapBase
|
||||
{
|
||||
public:
|
||||
wxGenericStaticBitmap() {}
|
||||
wxGenericStaticBitmap() = default;
|
||||
wxGenericStaticBitmap(wxWindow *parent,
|
||||
wxWindowID id,
|
||||
const wxBitmapBundle& bitmap,
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxPasswordEntryDialog : public wxTextEntryDialog
|
||||
{
|
||||
public:
|
||||
wxPasswordEntryDialog() { }
|
||||
wxPasswordEntryDialog() = default;
|
||||
wxPasswordEntryDialog(wxWindow *parent,
|
||||
const wxString& message,
|
||||
const wxString& caption = wxASCII_STR(wxGetPasswordFromUserPromptStr),
|
||||
|
|
|
|||
|
|
@ -403,7 +403,7 @@ class WXDLLIMPEXP_CORE wxTreeCtrl: public wxGenericTreeCtrl
|
|||
wxDECLARE_DYNAMIC_CLASS(wxTreeCtrl);
|
||||
|
||||
public:
|
||||
wxTreeCtrl() {}
|
||||
wxTreeCtrl() = default;
|
||||
|
||||
wxTreeCtrl(wxWindow *parent, wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
|
|
|
|||
|
|
@ -741,7 +741,7 @@ inline bool wxRect2DInt::operator != (const wxRect2DInt& rect) const
|
|||
class WXDLLIMPEXP_CORE wxTransform2D
|
||||
{
|
||||
public :
|
||||
virtual ~wxTransform2D() { }
|
||||
virtual ~wxTransform2D() = default;
|
||||
virtual void Transform( wxPoint2DInt* pt )const = 0;
|
||||
virtual void Transform( wxRect2DInt* r ) const;
|
||||
virtual wxPoint2DInt Transform( const wxPoint2DInt &pt ) const;
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ protected:
|
|||
class WXDLLIMPEXP_CORE wxGraphicsPen : public wxGraphicsObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsPen() {}
|
||||
virtual ~wxGraphicsPen() {}
|
||||
wxGraphicsPen() = default;
|
||||
virtual ~wxGraphicsPen() = default;
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGraphicsPen);
|
||||
};
|
||||
|
|
@ -158,8 +158,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsPen) wxNullGraphicsPen;
|
|||
class WXDLLIMPEXP_CORE wxGraphicsBrush : public wxGraphicsObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsBrush() {}
|
||||
virtual ~wxGraphicsBrush() {}
|
||||
wxGraphicsBrush() = default;
|
||||
virtual ~wxGraphicsBrush() = default;
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGraphicsBrush);
|
||||
};
|
||||
|
|
@ -169,8 +169,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsBrush) wxNullGraphicsBrush;
|
|||
class WXDLLIMPEXP_CORE wxGraphicsFont : public wxGraphicsObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsFont() {}
|
||||
virtual ~wxGraphicsFont() {}
|
||||
wxGraphicsFont() = default;
|
||||
virtual ~wxGraphicsFont() = default;
|
||||
private:
|
||||
wxDECLARE_DYNAMIC_CLASS(wxGraphicsFont);
|
||||
};
|
||||
|
|
@ -180,8 +180,8 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsFont) wxNullGraphicsFont;
|
|||
class WXDLLIMPEXP_CORE wxGraphicsBitmap : public wxGraphicsObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsBitmap() {}
|
||||
virtual ~wxGraphicsBitmap() {}
|
||||
wxGraphicsBitmap() = default;
|
||||
virtual ~wxGraphicsBitmap() = default;
|
||||
|
||||
// Convert bitmap to wxImage: this is more efficient than converting to
|
||||
// wxBitmap first and then to wxImage and also works without X server
|
||||
|
|
@ -206,9 +206,9 @@ extern WXDLLIMPEXP_DATA_CORE(wxGraphicsBitmap) wxNullGraphicsBitmap;
|
|||
class WXDLLIMPEXP_CORE wxGraphicsMatrix : public wxGraphicsObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsMatrix() {}
|
||||
wxGraphicsMatrix() = default;
|
||||
|
||||
virtual ~wxGraphicsMatrix() {}
|
||||
virtual ~wxGraphicsMatrix() = default;
|
||||
|
||||
// concatenates the matrix
|
||||
virtual void Concat( const wxGraphicsMatrix *t );
|
||||
|
|
@ -477,8 +477,8 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxGraphicsPath : public wxGraphicsObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsPath() {}
|
||||
virtual ~wxGraphicsPath() {}
|
||||
wxGraphicsPath() = default;
|
||||
virtual ~wxGraphicsPath() = default;
|
||||
|
||||
//
|
||||
// These are the path primitives from which everything else can be constructed
|
||||
|
|
@ -992,9 +992,9 @@ private:
|
|||
class WXDLLIMPEXP_CORE wxGraphicsRenderer : public wxObject
|
||||
{
|
||||
public:
|
||||
wxGraphicsRenderer() {}
|
||||
wxGraphicsRenderer() = default;
|
||||
|
||||
virtual ~wxGraphicsRenderer() {}
|
||||
virtual ~wxGraphicsRenderer() = default;
|
||||
|
||||
static wxGraphicsRenderer* GetDefaultRenderer();
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue