summaryrefslogtreecommitdiff
path: root/src/account.h
diff options
context:
space:
mode:
authorHuynh Tran <nthuynh75@gmail.com>2005-06-30 20:46:57 +0000
committerHuynh Tran <nthuynh75@gmail.com>2005-06-30 20:46:57 +0000
commit38cfcdd2b7681fc32b1464a4905c721246cf6d75 (patch)
treea4c6aca110f71fe221e66cdf57d4c5b66a8501a4 /src/account.h
parenta5aee1322f498537f8de83123099bbfcb2e3a969 (diff)
downloadmanaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.gz
manaserv-38cfcdd2b7681fc32b1464a4905c721246cf6d75.tar.bz2
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.h8
1 files changed, 7 insertions, 1 deletions
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<Account> AccountPtr;
+
+
} // namespace tmwserv