diff options
author | Huynh Tran <nthuynh75@gmail.com> | 2005-06-30 20:46:57 +0000 |
---|---|---|
committer | Huynh Tran <nthuynh75@gmail.com> | 2005-06-30 20:46:57 +0000 |
commit | 38cfcdd2b7681fc32b1464a4905c721246cf6d75 (patch) | |
tree | a4c6aca110f71fe221e66cdf57d4c5b66a8501a4 /src/account.h | |
parent | a5aee1322f498537f8de83123099bbfcb2e3a969 (diff) | |
download | manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.gz manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.xz manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.zip |
Fixed memory leak, implemented delAccount() + unit tests and now using reference-counted smart pointers to facilitate the memory management.
Diffstat (limited to 'src/account.h')
-rw-r--r-- | src/account.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/account.h b/src/account.h index 0291b78..7e1322c 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<Account> AccountPtr; + + } // namespace tmwserv |