tizen 2.4 release
[framework/security/key-manager.git] / src / manager / common / key-impl.cpp
index 47bc69b..ae70dbb 100644 (file)
@@ -98,12 +98,12 @@ KeyImpl::KeyImpl(const KeyImpl &second) {
     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;
 }