-rw-r--r-- | kabc/vcard/ContentLine.cpp | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/kabc/vcard/ContentLine.cpp b/kabc/vcard/ContentLine.cpp index 6fa1a8f..0fb5b5d 100644 --- a/kabc/vcard/ContentLine.cpp +++ b/kabc/vcard/ContentLine.cpp @@ -70,2 +70,3 @@ ContentLine::ContentLine() { + paramList_.setAutoDelete( TRUE ); } @@ -76,5 +77,20 @@ ContentLine::ContentLine(const ContentLine & x) name_ (x.name_), - paramList_(x.paramList_), - value_(x.value_->clone()) +/*US paramList_(x.paramList_),*/ + value_(x.value_->clone()), + paramType_(x.paramType_), + valueType_(x.valueType_), + entityType_(x.entityType_) { + paramList_.setAutoDelete( TRUE ); + + + ParamListIterator it(x.paramList_); + for (; it.current(); ++it) + { + Param *p = new Param; + p->setName( it.current()->name() ); + p->setValue( it.current()->value() ); + paramList_.append(p); + } + } @@ -85,2 +101,3 @@ ContentLine::ContentLine(const QCString & s) { + paramList_.setAutoDelete( TRUE ); } @@ -92,3 +109,11 @@ ContentLine::operator = (ContentLine & x) - paramList_ = x.paramList(); + ParamListIterator it(x.paramList_); + for (; it.current(); ++it) + { + Param *p = new Param; + p->setName( it.current()->name() ); + p->setValue( it.current()->value() ); + paramList_.append(p); + } + value_ = x.value_->clone(); |