forked from qt-creator/qt-creator
GoCmdBridge: Fix build for Qt less than 6.5
Amends ae6a0bb706
.
Change-Id: I3a2cd0f57bfccd880cfb0f35d4ba661d30a3a99c
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -323,7 +323,7 @@ expected_str<QFuture<Environment>> Client::start()
|
|||||||
auto stateMachine =
|
auto stateMachine =
|
||||||
[markerOffset = 0, state = int(0), packetSize(0), packetData = QByteArray(), this](
|
[markerOffset = 0, state = int(0), packetSize(0), packetData = QByteArray(), this](
|
||||||
QByteArray &buffer) mutable {
|
QByteArray &buffer) mutable {
|
||||||
static const QByteArrayView MagicCode{GOBRIDGE_MAGIC_PACKET_MARKER};
|
static const QByteArray MagicCode{GOBRIDGE_MAGIC_PACKET_MARKER};
|
||||||
|
|
||||||
if (state == 0) {
|
if (state == 0) {
|
||||||
const auto offsetMagicCode = MagicCode.mid(markerOffset);
|
const auto offsetMagicCode = MagicCode.mid(markerOffset);
|
||||||
|
Reference in New Issue
Block a user