[iOS] Mark EmbeddedViewCount const (flutter/engine#54062)

Since this method isn't mutating the pool, we should mark it const.

Cleanup spotted while working on https://github.com/flutter/engine/pull/54056.

No test because no semantic change. The compiler is the test.

[C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This commit is contained in:
Chris Bracken
2024-07-23 16:50:58 -07:00
committed by GitHub
parent e9d5c35bf1
commit 16455a2543
2 changed files with 2 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ void FlutterPlatformViewsController::PrerollCompositeEmbeddedView(
views_to_recomposite_.insert(view_id);
}
size_t FlutterPlatformViewsController::EmbeddedViewCount() {
size_t FlutterPlatformViewsController::EmbeddedViewCount() const {
return composition_order_.size();
}

View File

@@ -234,7 +234,7 @@ class FlutterPlatformViewsController {
void PrerollCompositeEmbeddedView(int64_t view_id,
std::unique_ptr<flutter::EmbeddedViewParams> params);
size_t EmbeddedViewCount();
size_t EmbeddedViewCount() const;
// Returns the `FlutterPlatformView`'s `view` object associated with the view_id.
//