Re: gcc -Werror and -Wextra fails
Dietmar Schwertberger <[email protected]> Tue, 13 Aug 2019 23:07:02 +0200
| Newsgroups | gmane.comp.python.wxglade |
|---|---|
| Message-ID | <[email protected]> |
On 13.08.2019 18:30, Dietmar Schwertberger wrote:
> Both test cases have header files with code like this:
>
> class MyFrame: public wxFrame {
> public:
> MyFrame(wxWindow* parent, wxWindowID id, const wxString& title,
> const wxPoint& pos=wxDefaultPosition, const wxSize&
> size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE);
I would think that changing the header file to the actual style would
fix things and still allow to instantiate with custom styles.
Then e.g. the header would look like this:
class MyFrame: public wxFrame {
public:
MyFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos=wxDefaultPosition,
const wxSize& size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxICONIZE|wxSTAY_ON_TOP);
The C++ file would look like this:
MyFrame::MyFrame(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style):
wxFrame(parent, id, title, pos, size, style)
Now if MyFrame(parent) is called, the style as defined in the header
file would be used. Is this correct?
Regards,
Dietmar
_______________________________________________
wxGlade-general mailing list
wxGlade-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/wxglade-general