m_type = second.m_type;
}
-KeyImpl &KeyImpl::operator=(const KeyImpl &second)
-{
- if (&second != this) {
- m_pkey = second.getEvpShPtr();
- m_type = second.getType();
- }
+KeyImpl &KeyImpl::operator=(const KeyImpl &second) {
+ if (this == &second)
+ return *this;
+
+ m_pkey = second.m_pkey;
+ m_type = second.m_type;
return *this;
}