From 38cfcdd2b7681fc32b1464a4905c721246cf6d75 Mon Sep 17 00:00:00 2001 From: Huynh Tran Date: Thu, 30 Jun 2005 20:46:57 +0000 Subject: Fixed memory leak, implemented delAccount() + unit tests and now using reference-counted smart pointers to facilitate the memory management. --- src/account.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/account.h') diff --git a/src/account.h b/src/account.h index 0291b780..7e1322cc 100644 --- a/src/account.h +++ b/src/account.h @@ -174,7 +174,7 @@ class Account * @param character the new character. */ void - addCharacter(Being* character); + addCharacter(BeingPtr character); /** @@ -225,6 +225,12 @@ class Account }; +/** + * Type definition for a smart pointer to Account. + */ +typedef utils::CountedPtr AccountPtr; + + } // namespace tmwserv -- cgit v1.2.3-60-g2f50