Update AMTL; replace AutoPtr/UniquePtr with STL.

This commit is contained in:
David Anderson
2020-05-18 18:19:16 -07:00
parent c2df49ee33
commit 7d7253c9cc
20 changed files with 78 additions and 58 deletions
+3 -1
View File
@@ -29,6 +29,8 @@
* Version: $Id$
*/
#include <memory>
#include <ITextParsers.h>
#include "ChatTriggers.h"
#include "sm_stringutil.h"
@@ -64,7 +66,7 @@ ChatTriggers::~ChatTriggers()
void ChatTriggers::SetChatTrigger(ChatTriggerType type, const char *value)
{
ke::AutoPtr<char[]> filtered(new char[strlen(value) + 1]);
std::unique_ptr<char[]> filtered(new char[strlen(value) + 1]);
const char *src = value;
char *dest = filtered.get();