SVN commit 526593 by tibirna: CT: cut off another private CUPS API usage. M +4 -13 ipprequest.cpp --- branches/KDE/3.5/kdelibs/kdeprint/cups/ipprequest.cpp #526592:526593 @@ -510,17 +510,8 @@ cupsEncodeOptions(request_, n, options); cupsFreeOptions(n, options); - // find an remove that annoying "document-format" attribute - ipp_attribute_t *attr = request_->attrs; - while (attr) - { - if (attr->next && strcmp(attr->next->name, "document-format") == 0) - { - ipp_attribute_t *attr2 = attr->next; - attr->next = attr2->next; - _ipp_free_attr(attr2); - break; - } - attr = attr->next; - } + // find and remove that annoying "document-format" attribute + ipp_attribute_t *attr = ippFindAttribute(request_, "document-format", IPP_TAG_NAME); + ippDeleteAttribute(request_, attr); + }