From bfd7fce59ca380e8cc4ee233aa19896b1dc8b969 Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Mon, 22 Jul 2024 15:30:45 +0200 Subject: [PATCH] Remove the Receiver struct from qnetworkaccesscache.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found this by an Axivion warning: "Compiler-generated constructor leaves some fields uninitialized." but it seems that this struct is not used anywhere else, so instead of initializing the member variable just remove the struct. Task-number: QTBUG-125026 Pick-to: 6.7 6.5 Change-Id: I09bb8936241ece148debbd572c8441dc9d998ff9 Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit a427e75d826c40cf3d39683bb7bd63126f00329f) Reviewed-by: Qt Cherry-pick Bot --- src/network/access/qnetworkaccesscache.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/network/access/qnetworkaccesscache.cpp b/src/network/access/qnetworkaccesscache.cpp index 2bc0e8fb708..b92bd69826c 100644 --- a/src/network/access/qnetworkaccesscache.cpp +++ b/src/network/access/qnetworkaccesscache.cpp @@ -18,14 +18,6 @@ enum ExpiryTimeEnum { ExpiryTime = 120 }; -namespace { - struct Receiver - { - QPointer object; - const char *member; - }; -} - // idea copied from qcache.h struct QNetworkAccessCache::Node {