summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-25 21:22:10 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-25 21:22:10 +0000
commit55b6e0438d504449e8b2e97cbc52f17117b29fe5 (patch)
treefc336d9ba1d87c10e6a54c7266ca9635084a3ee7 /include
parent6faec5eb4aa3af6833ef2340a262475e2b342753 (diff)
Used std::vector for MemoInfo's memos variable instead of an malloc'd array.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1795 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include')
-rw-r--r--include/services.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/services.h b/include/services.h
index 7bab47f98..ad67f1eb4 100644
--- a/include/services.h
+++ b/include/services.h
@@ -230,6 +230,7 @@ extern int strncasecmp(const char *, const char *, size_t);
#include <map>
#include <exception>
#include <list>
+#include <vector>
/** This class can be used on its own to represent an exception, or derived to represent a module-specific exception.
* When a module whishes to abort, e.g. within a constructor, it should throw an exception using ModuleException or
@@ -570,8 +571,8 @@ struct memo_ {
};
typedef struct {
- int16 memocount, memomax;
- Memo *memos;
+ int16 memomax;
+ std::vector<Memo *> memos;
} MemoInfo;