[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kdeprint/cups
From: Alex Kern <alex.kern () gmx ! de>
Date: 2006-05-04 8:00:41
Message-ID: 1146729641.929004.27974.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 537221 by kernalex:
do it like in branches
M +3 -4 ipprequest.cpp
--- trunk/KDE/kdelibs/kdeprint/cups/ipprequest.cpp #537220:537221
@@ -511,13 +511,12 @@
cupsFreeOptions(n, options);
// find an remove that annoying "document-format" attribute
- ipp_attribute_t *attr;
#if CUPS_VERSION_MAJOR == 1 && CUPS_VERSION_MINOR >= 2
- attr = ippFindAttribute(request_, "document-format", IPP_TAG_NAME);
+ ipp_attribute_t *attr = ippFindAttribute(request_, "document-format", IPP_TAG_NAME);
ippDeleteAttribute(request_, attr);
#else
- // (can't use IppDeleteAttribute as cups 1.0.9 doesn't have that)
- attr = request_->attrs;
+ // (can't use IppDeleteAttribute as older cups doesn't have that)
+ ipp_attribute_t *attr = request_->attrs;
while (attr)
{
if (attr->next && strcmp(attr->next->name, "document-format") == 0)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic