aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-05-19 17:42:33 +0000
committerVincent Richard <[email protected]>2005-05-19 17:42:33 +0000
commit598c0a3a58c635f0cad62b0fae6f86c87b2d5ddf (patch)
tree8326a6199a5effa7722a30ce697b60a13aa69706
parentRemoved useless blank line. (diff)
downloadvmime-598c0a3a58c635f0cad62b0fae6f86c87b2d5ddf.tar.gz
vmime-598c0a3a58c635f0cad62b0fae6f86c87b2d5ddf.zip
Fixed missing 'const'.
-rw-r--r--vmime/utility/smartPtr.hpp4
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++;