This always wasn't the best and started to result in CI failures now as
recent versions of gcc (e.g. 11.3 in Ubuntu 2.2.04) started giving
-Wdeprecated-enum-float-conversion when using REAL_SIZE in the
expressions.
Gbp-Pq: Name
13ebaee247781b7cde1c830b36145aec9ab91127.patch
class MyRawBitmapFrame : public wxFrame
{
public:
- enum
- {
- BORDER = 15,
- SIZE = 150,
- REAL_SIZE = SIZE - 2*BORDER
- };
+ static const int BORDER = 15;
+ static const int SIZE = 150;
+ static const int REAL_SIZE = SIZE - 2*BORDER;
MyRawBitmapFrame(wxFrame *parent)
: wxFrame(parent, wxID_ANY, "Raw bitmaps (how exciting)"),