LSP: Fix MSVC warning

implicit size_t -> int conversion.

Change-Id: I92afe6c984bc07d27bf9cded00400b1a614c6b4f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Orgad Shaneh
2018-09-17 09:29:57 +03:00
committed by Orgad Shaneh
parent 487e2f5d04
commit eee2245972

View File

@@ -71,7 +71,7 @@ bool BaseMessage::operator==(const BaseMessage &other) const
static QPair<QByteArray, QByteArray> splitHeaderFieldLine( static QPair<QByteArray, QByteArray> splitHeaderFieldLine(
const QByteArray &headerFieldLine, QString &parseError) const QByteArray &headerFieldLine, QString &parseError)
{ {
static const int fieldSeparatorLength = std::strlen(headerFieldSeparator); static const int fieldSeparatorLength = int(std::strlen(headerFieldSeparator));
int assignmentIndex = headerFieldLine.indexOf(headerFieldSeparator); int assignmentIndex = headerFieldLine.indexOf(headerFieldSeparator);
if (assignmentIndex >= 0) { if (assignmentIndex >= 0) {
return {headerFieldLine.mid(0, assignmentIndex), return {headerFieldLine.mid(0, assignmentIndex),