Move WeakPtrFactory in map_renderer.hpp (#2861)

This commit is contained in:
Bart Louwers
2024-09-23 17:16:18 +02:00
committed by GitHub
parent 9d553c2843
commit cadb8d1da0
3 changed files with 5 additions and 1 deletions

View File

@@ -146,10 +146,12 @@ private:
std::atomic<bool> destroyed{false};
std::unique_ptr<SnapshotCallback> snapshotCallback;
mapbox::base::WeakPtrFactory<Scheduler> weakFactory{this};
bool framebufferSizeChanged = false;
bool swapBehaviorFlush = false;
mapbox::base::WeakPtrFactory<Scheduler> weakFactory{this};
// Do not add members here, see `WeakPtrFactory`
};
} // namespace android