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:
Christian Stenger
2024-10-11 13:19:11 +02:00
parent bb92929b10
commit 8a69ab36b7

View File

@@ -323,7 +323,7 @@ expected_str<QFuture<Environment>> Client::start()
auto stateMachine =
[markerOffset = 0, state = int(0), packetSize(0), packetData = QByteArray(), this](
QByteArray &buffer) mutable {
static const QByteArrayView MagicCode{GOBRIDGE_MAGIC_PACKET_MARKER};
static const QByteArray MagicCode{GOBRIDGE_MAGIC_PACKET_MARKER};
if (state == 0) {
const auto offsetMagicCode = MagicCode.mid(markerOffset);