diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-08-15 16:33:44 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-08-15 16:33:44 +0200 |
commit | 49e65989679facd98c777ac7a945bc9aab82d771 (patch) | |
tree | 0bf32c9fa27ae23a9845948c2e3f56483e5f626a | |
parent | baab13fd40d90dc0a33241a4bd517f985479a0c5 (diff) | |
download | sigc++-49e65989679facd98c777ac7a945bc9aab82d771.tar.gz |
examples/member_method: Make on_print() non-virtual
so it can be compiled with the -Wnon-virtual-dtor compiler option.
-rw-r--r-- | examples/member_method.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/member_method.cc b/examples/member_method.cc index ab82525..5fc5b2c 100644 --- a/examples/member_method.cc +++ b/examples/member_method.cc @@ -15,7 +15,7 @@ public: Something(); protected: - virtual void on_print(int a); + void on_print(int a); using type_signal_print = sigc::signal<void(int)>; type_signal_print signal_print; @@ -35,7 +35,7 @@ Something::Something() void Something::on_print(int a) { - std::cout << "on_print recieved: " << a << std::endl; + std::cout << "on_print received: " << a << std::endl; } int |