diff options
author | Vincent Richard <[email protected]> | 2005-05-19 17:42:33 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2005-05-19 17:42:33 +0000 |
commit | 598c0a3a58c635f0cad62b0fae6f86c87b2d5ddf (patch) | |
tree | 8326a6199a5effa7722a30ce697b60a13aa69706 | |
parent | Removed useless blank line. (diff) | |
download | vmime-598c0a3a58c635f0cad62b0fae6f86c87b2d5ddf.tar.gz vmime-598c0a3a58c635f0cad62b0fae6f86c87b2d5ddf.zip |
Fixed missing 'const'.
-rw-r--r-- | vmime/utility/smartPtr.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vmime/utility/smartPtr.hpp b/vmime/utility/smartPtr.hpp index 196b2807..7b895629 100644 --- a/vmime/utility/smartPtr.hpp +++ b/vmime/utility/smartPtr.hpp @@ -71,7 +71,7 @@ public: smart_ptr() : m_data(NULL) { } smart_ptr(T* const p) : m_data(NULL) { if (p) { attach(p); } } - smart_ptr(smart_ptr& p) : m_data(NULL) { if (p.m_data) { attach(p); } } + smart_ptr(const smart_ptr& p) : m_data(NULL) { if (p.m_data) { attach(p); } } ~smart_ptr() { detach(); } @@ -143,7 +143,7 @@ private: } } - void attach(smart_ptr <T>& p) + void attach(const smart_ptr <T>& p) { data* newData = p.m_data; if (newData) newData->refCount++; |