Skip to content

Commit

Permalink
Fix inappropriate WeakPtrFactory use
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSylvester committed Oct 14, 2024
1 parent f617a5a commit c00b6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mbgl/style/sources/vector_source.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class VectorSource final : public Source {
private:
const variant<std::string, Tileset> urlOrTileset;
std::unique_ptr<AsyncRequest> req;
mapbox::base::WeakPtrFactory<Source> weakFactory {this};
optional<float> maxZoom;
optional<float> minZoom;
mapbox::base::WeakPtrFactory<Source> weakFactory {this};
};

template <>
Expand Down

0 comments on commit c00b6ca

Please sign in to comment.