[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdelibs/kdeprint/cups
From: Cristian Tibirna <tibirna () kde ! org>
Date: 2006-04-05 1:04:15
Message-ID: 1144199055.977665.22387.nullmailer () svn ! kde ! org
[Download RAW message or body]
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);
+
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic