Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[macOS] Mark move-only classes as such #39734

Merged
merged 1 commit into from
Feb 18, 2023

Conversation

cbracken
Copy link
Member

@cbracken cbracken commented Feb 18, 2023

Applies the FML_DISALLOW_COPY_AND_ASSIGN to non-POD types in the macOS embedder. Specifically the following three accessibility-related classes:

  • FlutterPlatformNodeDelegateMac
  • FlutterTextPlatformNode
  • AccessibilityBridgeMac

No new tests since no semantic change. Only has the compile-time effect of preventing copying of classes intended to be move-only.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@Hixie
Copy link
Contributor

Hixie commented Feb 18, 2023

test-exempt: code refactor with no semantic change

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Applies the FML_DISALLOW_COPY_AND_ASSIGN to non-POD types in the macOS
embedder. Specifically the following three accessibility-related
classes:
* FlutterPlatformNodeDelegateMac
* FlutterTextPlatformNode
* AccessibilityBridgeMac

No new tests since no semantic change. Only has the compile-time effect
of preventing copying of classes intended to be move-only.
@cbracken cbracken force-pushed the disallow-copy-and-assign branch from 11ba6ba to c3d7c87 Compare February 18, 2023 00:25
@cbracken cbracken merged commit 974274d into flutter:main Feb 18, 2023
@cbracken cbracken deleted the disallow-copy-and-assign branch February 18, 2023 01:18
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 18, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 18, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 18, 2023
…121025)

* 974274db7 [macOS] Mark move-only classes as such (flutter/engine#39734)

* d5316b6c9 add lint check for python files (flutter/engine#39736)

* 9a3c3e462 Roll Skia from 4b79e398dfe0 to 733a19f6a625 (9 revisions) (flutter/engine#39740)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants