summaryrefslogtreecommitdiffabout
path: root/kabc/vcard/VCardEntity.cpp
Side-by-side diff
Diffstat (limited to 'kabc/vcard/VCardEntity.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kabc/vcard/VCardEntity.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/kabc/vcard/VCardEntity.cpp b/kabc/vcard/VCardEntity.cpp
index 0c21e2f..0cd2086 100644
--- a/kabc/vcard/VCardEntity.cpp
+++ b/kabc/vcard/VCardEntity.cpp
@@ -4,3 +4,3 @@
Copyright (C) 1998 Rik Hemsley rik@kde.org
-
+
Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -33,2 +33,3 @@ VCardEntity::VCardEntity()
{
+ cardList_.setAutoDelete( TRUE );
}
@@ -38,2 +39,3 @@ VCardEntity::VCardEntity(const VCardEntity & x)
{
+ cardList_.setAutoDelete( TRUE );
}
@@ -43,2 +45,3 @@ VCardEntity::VCardEntity(const QCString & s)
{
+ cardList_.setAutoDelete( TRUE );
}
@@ -77,17 +80,17 @@ VCardEntity::_parse()
QCString s(strRep_);
-
+
int i = s.find(QRegExp("BEGIN:VCARD", false));
-
+
while (i != -1) {
-
+
i = s.find(QRegExp("BEGIN:VCARD", false), 11);
-
+
QCString cardStr(s.left(i));
-
+
VCard * v = new VCard(cardStr);
-
+
cardList_.append(v);
-
+
v->parse();
-
+
s.remove(0, i);
@@ -100,3 +103,3 @@ VCardEntity::_assemble()
VCardListIterator it(cardList_);
-
+
for (; it.current(); ++it)