From 88ac04344fb5200bd8f02077a3a87ee1bd2968a9 Mon Sep 17 00:00:00 2001 From: Alexey Edelev Date: Mon, 20 May 2024 14:00:59 +0200 Subject: [PATCH] Add the missing 'return' to QProtobufSerializerPrivate::serializeProperty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we are confident that the property is message, we shouldn't attempt to look for other serializers. Pick-to: 6.7 Change-Id: I61c76d9dc2c43d5b8a91627d1e3a7aaebbb8d166 Reviewed-by: MÃ¥rten Nordheim --- src/protobuf/qprotobufserializer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/protobuf/qprotobufserializer.cpp b/src/protobuf/qprotobufserializer.cpp index d4f3b4cc..3d7137af 100644 --- a/src/protobuf/qprotobufserializer.cpp +++ b/src/protobuf/qprotobufserializer.cpp @@ -569,6 +569,7 @@ void QProtobufSerializerPrivate::serializeProperty(const QVariant &propertyValue store.append(QProtobufSerializerPrivate::serializeVarintCommon(result.size())); store.append(result); result = store; + return; } auto basicHandler = findIntegratedTypeHandler(