Skip to content

Commit 6952ddd

Browse files
committed
examples/member_method: Make on_print() non-virtual
so it can be compiled with the -Wnon-virtual-dtor compiler option.
1 parent 4b829ec commit 6952ddd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/member_method.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Something : public sigc::trackable
1515
Something();
1616

1717
protected:
18-
virtual void on_print(int a);
18+
void on_print(int a);
1919

2020
using type_signal_print = sigc::signal<void(int)>;
2121
type_signal_print signal_print;
@@ -35,7 +35,7 @@ Something::Something()
3535
void
3636
Something::on_print(int a)
3737
{
38-
std::cout << "on_print recieved: " << a << std::endl;
38+
std::cout << "on_print received: " << a << std::endl;
3939
}
4040

4141
int

0 commit comments

Comments
 (0)