diff options
author | Vincent Richard <[email protected]> | 2005-07-17 20:18:14 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-07-17 20:18:14 +0000 |
commit | dafac00334ffa0ccc32696a208b2531cb4f44947 (patch) | |
tree | 78323e15fc1daca6522c1ae68336f3ce8f0ba849 /src/object.cpp | |
parent | Added getName() to retrieve attachment filename. (diff) | |
download | vmime-dafac00334ffa0ccc32696a208b2531cb4f44947.tar.gz vmime-dafac00334ffa0ccc32696a208b2531cb4f44947.zip |
Added unit tests for smart pointer.
Diffstat (limited to 'src/object.cpp')
-rw-r--r-- | src/object.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/object.cpp b/src/object.cpp index 481a3564..dc4602c7 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -126,5 +126,17 @@ weak_ref <const object> object::thisWeakRef() const } +const int object::getStrongRefCount() const +{ + return m_strongCount; +} + + +const int object::getWeakRefCount() const +{ + return static_cast <const int>(m_weakRefs.size()); +} + + } // vmime |