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:
@@ -174,11 +174,6 @@ wxBitmap::wxBitmap(QPixmap pix)
|
||||
m_refData = new wxBitmapRefData(pix);
|
||||
}
|
||||
|
||||
wxBitmap::wxBitmap(const wxBitmap& bmp)
|
||||
{
|
||||
Ref(bmp);
|
||||
}
|
||||
|
||||
wxBitmap::wxBitmap(const char bits[], int width, int height, int depth )
|
||||
{
|
||||
wxASSERT(depth == 1);
|
||||
|
||||
Reference in New Issue
Block a user