- Constructor order.
- Unused variables.
- size_t -> int conversions.
Change-Id: Ic5b016f41d01a4d8153ae0900b607bf946523c1d
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
return;
}
- QUrl uri = QUrl::fromEncoded(request.mid(4, eol - strlen(http11) - 4));
+ QUrl uri = QUrl::fromEncoded(request.mid(4, eol - int(strlen(http11)) - 4));
source.setFileName(":" + uri.path());
// connection-close?
qWarning() << "no content-length:" << QString(buffer);
break;
}
- pos += strlen("\r\ncontent-length: ");
+ pos += int(strlen("\r\ncontent-length: "));
int eol = buffer.indexOf("\r\n", pos + 2);
if (eol == -1) {
setFlag(QGraphicsItem::ItemIsSelectable);
}
-void CustomGroup::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
+void CustomGroup::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *)
{
if (option->state & QStyle::State_Selected)
painter->setOpacity(1.);
#include <QtWidgets>
struct Statistics {
- Statistics() : output(0),
- setGeometryCount(0), currentBenchmarkIteration(0), relayoutClicked(false), sleepMsecs(0)
+ Statistics() : setGeometryCount(0), sleepMsecs(0), output(0),
+ currentBenchmarkIteration(0), relayoutClicked(false)
{
}
QMap<QGraphicsWidget*, int> setGeometryTracker;
connect(ul, SIGNAL(downloadFinished(TransferItem*)), SLOT(downloadFinished(TransferItem*)));
}
-void DownloadManager::finished(QNetworkReply *reply)
+void DownloadManager::finished(QNetworkReply *)
{
}
qDebug() << "authenticationRequired" << reply;
TransferItem *transfer = findTransfer(reply);
//provide the credentials exactly once, so that it fails if credentials are incorrect.
- if (transfer && !transfer->user.isEmpty() || !transfer->password.isEmpty()) {
+ if ((transfer && !transfer->user.isEmpty()) || !transfer->password.isEmpty()) {
auth->setUser(transfer->user);
auth->setPassword(transfer->password);
transfer->user.clear();
}
}
-void DownloadManager::proxyAuthenticationRequired(const QNetworkProxy &proxy, QAuthenticator *auth)
+void DownloadManager::proxyAuthenticationRequired(const QNetworkProxy &, QAuthenticator *auth)
{
//provide the credentials exactly once, so that it fails if credentials are incorrect.
if (!proxyUser.isEmpty() || !proxyPassword.isEmpty()) {
return false;
}
-void TabletWidget::paintEvent(QPaintEvent *event)
+void TabletWidget::paintEvent(QPaintEvent *)
{
QPainter painter(this);