Add copy constructor
[platform/core/uifw/ise-engine-sunpinyin.git] / src / portability.cpp
index ea3b4fb..86fa6c2 100644 (file)
@@ -110,6 +110,18 @@ TLongExpFloat::operator==(const TLongExpFloat& b) const
     return(m_base == b.m_base && m_exp == b.m_exp);
 }
 
+TLongExpFloat&
+TLongExpFloat::operator=(const TLongExpFloat& b)
+{
+    if (m_base == b.m_base && m_exp == b.m_exp)
+        return *this;
+
+    m_base = b.m_base;
+    m_exp = b.m_exp;
+
+    return *this;
+}
+
 void
 TLongExpFloat::toString(std::string& str) const
 {