summaryrefslogtreecommitdiffstats
path: root/src/messages/MGenericMessage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/messages/MGenericMessage.h')
-rw-r--r--src/messages/MGenericMessage.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/messages/MGenericMessage.h b/src/messages/MGenericMessage.h
index 7ef0f6beff8..7b2f85df5e2 100644
--- a/src/messages/MGenericMessage.h
+++ b/src/messages/MGenericMessage.h
@@ -18,18 +18,15 @@
#include "msg/Message.h"
-class MGenericMessage : public Message {
+class MGenericMessage : public MessageInstance<MGenericMessage> {
public:
- typedef boost::intrusive_ptr<MGenericMessage> ref;
- typedef boost::intrusive_ptr<MGenericMessage const> const_ref;
- using factory = MessageFactory<MGenericMessage>;
friend factory;
private:
char tname[20];
//long pcid;
public:
- MGenericMessage(int t=0) : Message(t) {
+ MGenericMessage(int t=0) : MessageInstance(t) {
snprintf(tname, sizeof(tname), "generic%d", get_type());
}