mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-23 18:32:53 +00:00
print-manager: compiler warning fix
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
cd6f964daf
commit
0e1bf50069
1 changed files with 5 additions and 4 deletions
|
@ -182,15 +182,16 @@ QString KIppRequest::assembleUrif(const QString &name, bool isClass)
|
|||
{
|
||||
char uri[HTTP_MAX_URI]; // printer URI
|
||||
|
||||
QString destination;
|
||||
QByteArray resourcef;
|
||||
if (isClass) {
|
||||
destination = QLatin1String("/classes/") + name;
|
||||
resourcef = "/classes/%s";
|
||||
} else {
|
||||
destination = QLatin1String("/printers/") + name;
|
||||
resourcef = "/printers/%s";
|
||||
}
|
||||
const QByteArray destination = name.toUtf8();
|
||||
|
||||
httpAssembleURIf(HTTP_URI_CODING_ALL, uri, sizeof(uri), "ipp", cupsUser(), "localhost",
|
||||
ippPort(), destination.toUtf8());
|
||||
ippPort(), resourcef.constData(), destination.constData());
|
||||
return uri;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue