diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-04-27 18:20:24 +0200 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-04-27 18:20:24 +0200 |
commit | 7f9e83647cfc36e8507925fa814058b5f4fbecf2 (patch) | |
tree | 5b15db71230151ad2222c7d40382110937a46dda | |
parent | e51bf59955d7a6f32b6f653e4f8fca4e821d61f9 (diff) | |
download | sigc++-7f9e83647cfc36e8507925fa814058b5f4fbecf2.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 2b4d732..d7c1f6b 100644 --- a/examples/member_method.cc +++ b/examples/member_method.cc @@ -16,7 +16,7 @@ public: protected: - virtual void on_print(int a); + void on_print(int a); typedef sigc::signal<void, int> type_signal_print; type_signal_print signal_print; @@ -36,7 +36,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 main() |