summaryrefslogtreecommitdiff
path: root/src/net/messagehandler.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-25 18:35:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-25 18:35:21 +0300
commit71f88c02f79a1164430eec1de3e15edec011a15e (patch)
tree6a0772ee943a41314b5abd92fed0ce269faced27 /src/net/messagehandler.h
parent6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 (diff)
downloadmv-71f88c02f79a1164430eec1de3e15edec011a15e.tar.gz
mv-71f88c02f79a1164430eec1de3e15edec011a15e.tar.bz2
mv-71f88c02f79a1164430eec1de3e15edec011a15e.tar.xz
mv-71f88c02f79a1164430eec1de3e15edec011a15e.zip
improve construcors in abstract classes.
Also add some missing final to classes.
Diffstat (limited to 'src/net/messagehandler.h')
-rw-r--r--src/net/messagehandler.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/net/messagehandler.h b/src/net/messagehandler.h
index c438ed679..497934bd8 100644
--- a/src/net/messagehandler.h
+++ b/src/net/messagehandler.h
@@ -42,15 +42,17 @@ class MessageHandler
virtual void handleMessage(MessageIn &msg) = 0;
- MessageHandler() :
- handledMessages(nullptr)
- {
- }
A_DELETE_COPY(MessageHandler)
virtual ~MessageHandler()
{ }
+
+ protected:
+ MessageHandler() :
+ handledMessages(nullptr)
+ {
+ }
};
} // namespace Net