From b74c500aa9e5e7949ca46f42e0dc62e02136e259 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Mon, 14 Apr 2025 01:53:06 -0400 Subject: [SharedCache] Misc cleanup - Make `SharedCache::m_entries` a simple std::vector we never lookup based off the entry ID - Remove some old comments - Rename some old variables so that they are accurate - Fix compiler warnings - Remove some unneeded copying --- view/sharedcache/core/ObjC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/sharedcache/core/ObjC.cpp') diff --git a/view/sharedcache/core/ObjC.cpp b/view/sharedcache/core/ObjC.cpp index dc5c3856..2e37fd27 100644 --- a/view/sharedcache/core/ObjC.cpp +++ b/view/sharedcache/core/ObjC.cpp @@ -111,7 +111,7 @@ std::optional GetObjCOptimizationHeader(SharedCache& cac // Find the first primary entry and use that header to read the obj opt header. // Don't ask me why this is done like this... std::optional primaryCacheHeader = std::nullopt; - for (const auto& [_, entry] : cache.GetEntries()) + for (const auto& entry : cache.GetEntries()) { if (entry.GetType() == CacheEntryType::Primary) { -- cgit v1.3.1