Diffstat (limited to 'libopie2/opiepim/core/opimrecord.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/core/opimrecord.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
@@ -14,24 +14,26 @@ OPimRecord::OPimRecord( int uid ) | |||
14 | m_lastHit = -1; | 14 | m_lastHit = -1; |
15 | setUid( uid ); | 15 | setUid( uid ); |
16 | } | 16 | } |
17 | OPimRecord::~OPimRecord() { | 17 | OPimRecord::~OPimRecord() { |
18 | } | 18 | } |
19 | OPimRecord::OPimRecord( const OPimRecord& rec ) | 19 | OPimRecord::OPimRecord( const OPimRecord& rec ) |
20 | : Qtopia::Record( rec ) | 20 | : Qtopia::Record( rec ) |
21 | { | 21 | { |
22 | (*this) = rec; | 22 | (*this) = 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; |
29 | 31 | ||
30 | return *this; | 32 | return *this; |
31 | } | 33 | } |
32 | /* | 34 | /* |
33 | * category names | 35 | * category names |
34 | */ | 36 | */ |
35 | QStringList OPimRecord::categoryNames( const QString& appname ) const { | 37 | QStringList OPimRecord::categoryNames( const QString& appname ) const { |
36 | QStringList list; | 38 | QStringList list; |
37 | QArray<int> cats = categories(); | 39 | QArray<int> cats = categories(); |