Remove unnecessary wxBitmap copy ctor from wxQt
This ctor is not needed as the inherited wxObject ctor is sufficient and defining it but not operator=() explicitly results in -Wdeprecated-copy from gcc 10.
This commit is contained in:
@@ -22,7 +22,6 @@ class WXDLLIMPEXP_CORE wxBitmap : public wxBitmapBase
|
|||||||
public:
|
public:
|
||||||
wxBitmap();
|
wxBitmap();
|
||||||
wxBitmap(QPixmap pix);
|
wxBitmap(QPixmap pix);
|
||||||
wxBitmap(const wxBitmap& bmp);
|
|
||||||
wxBitmap(const char bits[], int width, int height, int depth = 1);
|
wxBitmap(const char bits[], int width, int height, int depth = 1);
|
||||||
wxBitmap(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH);
|
wxBitmap(int width, int height, int depth = wxBITMAP_SCREEN_DEPTH);
|
||||||
wxBitmap(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH);
|
wxBitmap(const wxSize& sz, int depth = wxBITMAP_SCREEN_DEPTH);
|
||||||
|
@@ -174,11 +174,6 @@ wxBitmap::wxBitmap(QPixmap pix)
|
|||||||
m_refData = new wxBitmapRefData(pix);
|
m_refData = new wxBitmapRefData(pix);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxBitmap::wxBitmap(const wxBitmap& bmp)
|
|
||||||
{
|
|
||||||
Ref(bmp);
|
|
||||||
}
|
|
||||||
|
|
||||||
wxBitmap::wxBitmap(const char bits[], int width, int height, int depth )
|
wxBitmap::wxBitmap(const char bits[], int width, int height, int depth )
|
||||||
{
|
{
|
||||||
wxASSERT(depth == 1);
|
wxASSERT(depth == 1);
|
||||||
|
Reference in New Issue
Block a user