From 55b6e0438d504449e8b2e97cbc52f17117b29fe5 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 25 Nov 2008 21:22:10 +0000 Subject: 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 --- include/services.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 #include #include +#include /** 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 memos; } MemoInfo; -- cgit