summaryrefslogtreecommitdiff
path: root/plugins/StatusManager/src/commonstatus.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-02-02 13:27:14 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-02-02 13:27:14 +0300
commita7a6991d945a508d0f21ab34fd2f76ca15b95248 (patch)
treebf01e4414cea21d2494272d0d150afaae0438fa5 /plugins/StatusManager/src/commonstatus.h
parent7253436a88270d83009626a1a5021658de85e8e8 (diff)
StatusManager:
- fixes #1129 (Status Manager broked. When I change profile - not happend) - all standard memory allocation routines replaced with mir_* (more effective) - classes used to allocate memory instead of manual code
Diffstat (limited to 'plugins/StatusManager/src/commonstatus.h')
-rw-r--r--plugins/StatusManager/src/commonstatus.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/StatusManager/src/commonstatus.h b/plugins/StatusManager/src/commonstatus.h
index 54e64f003c..488d28bfb6 100644
--- a/plugins/StatusManager/src/commonstatus.h
+++ b/plugins/StatusManager/src/commonstatus.h
@@ -101,6 +101,7 @@ typedef enum
struct SMProto : public PROTOCOLSETTINGEX, public MZeroedObject
{
SMProto(PROTOACCOUNT *pa);
+ SMProto(const SMProto&);
~SMProto();
// AdvancedAutoAway settings
@@ -125,7 +126,12 @@ struct SMProto : public PROTOCOLSETTINGEX, public MZeroedObject
int lastStatusAckTime; // the time the last status ack was received
};
-typedef OBJLIST<SMProto> TProtoSettings;
+struct TProtoSettings : public OBJLIST<SMProto>
+{
+ TProtoSettings();
+ TProtoSettings(const TProtoSettings&);
+};
+
extern TProtoSettings protoList;
int CompareProtoSettings(const SMProto *p1, const SMProto *p2);