summaryrefslogtreecommitdiffabout
path: root/kabc/vcard
Unidiff
Diffstat (limited to 'kabc/vcard') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/vcard/VCardv.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/kabc/vcard/VCardv.cpp b/kabc/vcard/VCardv.cpp
index 3f0a5e5..391a69e 100644
--- a/kabc/vcard/VCardv.cpp
+++ b/kabc/vcard/VCardv.cpp
@@ -35,46 +35,42 @@ using namespace VCARD;
35 35
36VCard::VCard() 36VCard::VCard()
37 :Entity() 37 :Entity()
38{ 38{
39 contentLineList_.setAutoDelete( TRUE ); 39 contentLineList_.setAutoDelete( TRUE );
40} 40}
41 41
42VCard::VCard(const VCard & x) 42VCard::VCard(const VCard & x)
43 :Entity(x), 43 :Entity(x),
44 group_(x.group_) 44 group_(x.group_)
45{ 45{
46 contentLineList_.setAutoDelete( TRUE ); 46 contentLineList_.setAutoDelete( TRUE );
47 //US
48 qDebug("VCard::VCard");
49 47
50 QPtrListIterator<ContentLine> it(x.contentLineList_); 48 QPtrListIterator<ContentLine> it(x.contentLineList_);
51 for (; it.current(); ++it) { 49 for (; it.current(); ++it) {
52 ContentLine * c = new ContentLine(*it.current()); 50 ContentLine * c = new ContentLine(*it.current());
53 contentLineList_.append(c); 51 contentLineList_.append(c);
54 } 52 }
55 53
56} 54}
57 55
58VCard::VCard(const QCString & s) 56VCard::VCard(const QCString & s)
59 :Entity(s) 57 :Entity(s)
60{ 58{
61 contentLineList_.setAutoDelete( TRUE ); 59 contentLineList_.setAutoDelete( TRUE );
62} 60}
63 61
64 VCard & 62 VCard &
65VCard::operator = (VCard & x) 63VCard::operator = (VCard & x)
66{ 64{
67 //US
68 qDebug("VCard::operator =");
69 if (*this == x) return *this; 65 if (*this == x) return *this;
70 66
71 group_ = x.group(); 67 group_ = x.group();
72 QPtrListIterator<ContentLine> it(x.contentLineList_); 68 QPtrListIterator<ContentLine> it(x.contentLineList_);
73 for (; it.current(); ++it) { 69 for (; it.current(); ++it) {
74 ContentLine * c = new ContentLine(*it.current()); 70 ContentLine * c = new ContentLine(*it.current());
75 contentLineList_.append(c); 71 contentLineList_.append(c);
76 } 72 }
77 73
78 Entity::operator = (x); 74 Entity::operator = (x);
79 return *this; 75 return *this;
80} 76}