summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2022-04-27 18:11:08 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2022-04-27 18:11:08 +0200
commit6952dddbcbab0daa61803b3d4b9b0719f326efba (patch)
tree1f7cfd9a89ab601e511cf40edf17b8d812e2700d
parent4b829ece84c6dbaa4d89bf4fe6feebd4236b31d1 (diff)
downloadsigc++-6952dddbcbab0daa61803b3d4b9b0719f326efba.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.cc4
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