-rw-r--r-- | libopie/pim/opimrecord.cpp | 2 | ||||
-rw-r--r-- | libopie2/opiepim/core/opimrecord.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libopie/pim/opimrecord.cpp b/libopie/pim/opimrecord.cpp index 9510357..0c9734d 100644 --- a/libopie/pim/opimrecord.cpp +++ b/libopie/pim/opimrecord.cpp | |||
@@ -23,6 +23,8 @@ OPimRecord::OPimRecord( const OPimRecord& rec ) | |||
23 | } | 23 | } |
24 | 24 | ||
25 | OPimRecord &OPimRecord::operator=( const OPimRecord& rec) { | 25 | OPimRecord &OPimRecord::operator=( const OPimRecord& rec) { |
26 | if ( this == &rec ) return *this; | ||
27 | |||
26 | Qtopia::Record::operator=( rec ); | 28 | Qtopia::Record::operator=( rec ); |
27 | m_xrefman = rec.m_xrefman; | 29 | m_xrefman = rec.m_xrefman; |
28 | m_lastHit = rec.m_lastHit; | 30 | m_lastHit = rec.m_lastHit; |
diff --git a/libopie2/opiepim/core/opimrecord.cpp b/libopie2/opiepim/core/opimrecord.cpp index 9510357..0c9734d 100644 --- a/libopie2/opiepim/core/opimrecord.cpp +++ b/libopie2/opiepim/core/opimrecord.cpp | |||
@@ -23,6 +23,8 @@ OPimRecord::OPimRecord( const OPimRecord& rec ) | |||
23 | } | 23 | } |
24 | 24 | ||
25 | OPimRecord &OPimRecord::operator=( const OPimRecord& rec) { | 25 | OPimRecord &OPimRecord::operator=( const OPimRecord& rec) { |
26 | if ( this == &rec ) return *this; | ||
27 | |||
26 | Qtopia::Record::operator=( rec ); | 28 | Qtopia::Record::operator=( rec ); |
27 | m_xrefman = rec.m_xrefman; | 29 | m_xrefman = rec.m_xrefman; |
28 | m_lastHit = rec.m_lastHit; | 30 | m_lastHit = rec.m_lastHit; |