Skip to content

Commit 7f9e836

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 e51bf59 commit 7f9e836

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
@@ -16,7 +16,7 @@ class Something : public sigc::trackable
1616

1717
protected:
1818

19-
virtual void on_print(int a);
19+
void on_print(int a);
2020

2121
typedef sigc::signal<void, int> type_signal_print;
2222
type_signal_print signal_print;
@@ -36,7 +36,7 @@ Something::Something()
3636

3737
void Something::on_print(int a)
3838
{
39-
std::cout << "on_print recieved: " << a << std::endl;
39+
std::cout << "on_print received: " << a << std::endl;
4040
}
4141

4242
int main()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy