mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-01-31 10:30:52 +00:00
Fix two QT payment server warnings
This code cleans up two warnings about deprecated functions and removes another case of using a signed integer for a network request length.
This commit is contained in:
parent
6cb6ec5202
commit
88ad916fce
@ -460,7 +460,7 @@ void PaymentServer::handleURIOrFile(const QString& s)
|
||||
return;
|
||||
}
|
||||
QByteArray temp;
|
||||
temp.append(uri.queryItemValue("r"));
|
||||
temp.append(uri.queryItemValue("r").toUtf8());
|
||||
QString decoded = QUrl::fromPercentEncoding(temp);
|
||||
QUrl fetchUrl(decoded, QUrl::StrictMode);
|
||||
|
||||
@ -716,7 +716,7 @@ void PaymentServer::fetchPaymentACK(CWallet* wallet, SendCoinsRecipient recipien
|
||||
}
|
||||
}
|
||||
|
||||
int length = payment.ByteSize();
|
||||
quint64 length = payment.ByteSizeLong();
|
||||
netRequest.setHeader(QNetworkRequest::ContentLengthHeader, length);
|
||||
QByteArray serData(length, '\0');
|
||||
if (payment.SerializeToArray(serData.data(), length)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user