forked from qt-creator/qt-creator
Fix build on macOS
Complains about template argument (QString) and type of value (const QString) not being the same. make_optional is usually used with template parameter deduction anyhow, but in this case we can just return the value. Change-Id: Icc5c6bb4505d09ab6a864fb7a7c6ec97e34b42b7 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
committed by
Christian Stenger
parent
c624467a5f
commit
66948d9a63
@@ -880,7 +880,7 @@ Utils::optional<QString> ChannelBuffer::takeFirstLine()
|
|||||||
|
|
||||||
const QString line = QString::fromUtf8(rawData.left(firstLineEnd));
|
const QString line = QString::fromUtf8(rawData.left(firstLineEnd));
|
||||||
rawData.remove(0, firstLineEnd + 1);
|
rawData.remove(0, firstLineEnd + 1);
|
||||||
return Utils::make_optional<QString>(line);
|
return line;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChannelBuffer::append(const QByteArray &text)
|
void ChannelBuffer::append(const QByteArray &text)
|
||||||
|
|||||||
Reference in New Issue
Block a user