rem: if(!ptr && create) { ptr=new T(); ptr->setRFC2047Charset(d_efaultCS); ptr->setForceDefaultCS(f_orceDefaultCS);
add: if(!ptr && create) { ptr=new T(this);
context: template <class T> T* KNMimeContent::getHeaderInstance(T *ptr, bool create){  T dummy; //needed to access virtual member T::type()  ptr=static_cast <T*> (getHeaderByType(dummy.type()));  if(!ptr && create) { //no such header found => create it    ptr=new T();    ptr->setRFC2047Charset(d_efaultCS);      // important for the ContentType-Header!!    ptr->setForceDefaultCS(f_orceDefaultCS);    if(!(h_eaders)) {      h_eaders=new KNHeaders::List();      h_eaders->setAutoDelete(true);    }    h_eaders->append(ptr);  }  return ptr;}