summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.h
diff options
context:
space:
mode:
authorMark Rowe <mrowe@bdash.net.nz>2025-02-19 09:54:09 -0800
committerMark Rowe <mrowe@bdash.net.nz>2025-02-19 09:57:05 -0800
commit477e3221a82ce5f96b3083e7415492d5da6fc9b4 (patch)
tree5ac9d2627f0f6ce536b8dc54ead7f9b441455a70 /view/sharedcache/core/SharedCache.h
parent5d0b328b1e320b540821342b536927609b055136 (diff)
[SharedCache] Don't capture `this` within lambda passed to MMappedFileAccessor::Open
Nothing guarantees that the `SharedCache` lives long enough.
Diffstat (limited to 'view/sharedcache/core/SharedCache.h')
-rw-r--r--view/sharedcache/core/SharedCache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/sharedcache/core/SharedCache.h b/view/sharedcache/core/SharedCache.h
index c1026295..f6a1e7a8 100644
--- a/view/sharedcache/core/SharedCache.h
+++ b/view/sharedcache/core/SharedCache.h
@@ -596,7 +596,7 @@ namespace SharedCacheCore {
bool SaveCacheInfoToDSCView(std::lock_guard<std::mutex>&);
bool SaveModifiedStateToDSCView(std::lock_guard<std::mutex>&);
- void ParseAndApplySlideInfoForFile(std::shared_ptr<MMappedFileAccessor> file, uint64_t baseAddress);
+ static void ParseAndApplySlideInfoForFile(std::shared_ptr<MMappedFileAccessor> file, uint64_t baseAddress, Ref<Logger> logger);
std::optional<uint64_t> GetImageStart(std::string_view installName);
const SharedCacheMachOHeader* HeaderForAddress(uint64_t);
bool LoadImageWithInstallName(std::string installName, bool skipObjC);