Remove some warnings
This commit is contained in:
parent
fa34843c3e
commit
058d4c31ed
2 changed files with 7 additions and 7 deletions
|
@ -59,7 +59,7 @@ IppDiscovery::~IppDiscovery() {
|
|||
delete socket;
|
||||
}
|
||||
|
||||
IppDiscovery* IppDiscovery::m_Instance = 0;
|
||||
IppDiscovery* IppDiscovery::m_Instance = nullptr;
|
||||
|
||||
IppDiscovery* IppDiscovery::instance()
|
||||
{
|
||||
|
@ -224,7 +224,7 @@ void IppDiscovery::readPendingDatagrams()
|
|||
|
||||
}
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
qDebug() << e.what();
|
||||
return;
|
||||
|
@ -302,7 +302,7 @@ QImage IppDiscovery::requestImage(const QString &id, QSize *size, const QSize &r
|
|||
}
|
||||
|
||||
QNetworkRequest request(url);
|
||||
request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint "SEAPRINT_VERSION);
|
||||
request.setHeader(QNetworkRequest::UserAgentHeader, "SeaPrint " SEAPRINT_VERSION);
|
||||
|
||||
QNetworkReply* reply = nam->get(request);
|
||||
|
||||
|
|
|
@ -125,7 +125,7 @@ void IppPrinter::getPrinterAttributesFinished(QNetworkReply *reply)
|
|||
qDebug() << resp.getStatus() << resp.getOpAttrs() << resp.getPrinterAttrs();
|
||||
_attrs = resp.getPrinterAttrs();
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
qDebug() << e.what();
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ void IppPrinter::printRequestFinished(QNetworkReply *reply)
|
|||
}
|
||||
status = resp.getStatus() <= 0xff;
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
qDebug() << e.what();
|
||||
}
|
||||
|
@ -198,7 +198,7 @@ void IppPrinter::getJobsRequestFinished(QNetworkReply *reply)
|
|||
_jobs = resp.getJobAttrs();
|
||||
emit jobsChanged();
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
qDebug() << e.what();
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ void IppPrinter::cancelJobFinished(QNetworkReply *reply)
|
|||
qDebug() << resp.getStatus() << resp.getOpAttrs() << resp.getJobAttrs();
|
||||
status = resp.getStatus() <= 0xff;
|
||||
}
|
||||
catch(std::exception e)
|
||||
catch(const std::exception& e)
|
||||
{
|
||||
qDebug() << e.what();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue