Mercurial > dwindows
comparison dwtestoo.cpp @ 2873:0bbfb19022e7
C++: GCC prior to 4.7 does not support the override keyword.
So if using earlier versions of GCC, just remove override.
This allows compilation on ancient GCC and GCC based Xcode.
Also remove virtual from the application, I don't think it
is needed and old GCC pukes on it when it is there.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 19 Dec 2022 07:42:12 +0000 |
parents | 4b7c4cd7a11d |
children | 99311a9091af |
comparison
equal
deleted
inserted
replaced
2872:e62fc9b3b09c | 2873:0bbfb19022e7 |
---|---|
8 public: | 8 public: |
9 MyWindow() { | 9 MyWindow() { |
10 SetText("Basic application"); | 10 SetText("Basic application"); |
11 SetSize(200, 200); | 11 SetSize(200, 200); |
12 } | 12 } |
13 virtual int OnDelete() override { DW::App *app = DW::App::Init(); app->MainQuit(); return FALSE; } | 13 int OnDelete() override { DW::App *app = DW::App::Init(); app->MainQuit(); return FALSE; } |
14 virtual int OnConfigure(int width, int height) override { return FALSE; } | 14 int OnConfigure(int width, int height) override { return FALSE; } |
15 }; | 15 }; |
16 | 16 |
17 int dwmain(int argc, char* argv[]) | 17 int dwmain(int argc, char* argv[]) |
18 { | 18 { |
19 DW::App *app = DW::App::Init(argc, argv, "org.dbsoft.dwindows.dwtestoo"); | 19 DW::App *app = DW::App::Init(argc, argv, "org.dbsoft.dwindows.dwtestoo"); |