Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Mark move-only classes as such #39738

Merged
merged 1 commit into from Feb 21, 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 Windows embedder.
Also #includes fml/macros.h in a few places we were already using the macro, but missed int #include.

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.

@cbracken cbracken force-pushed the windows-fml-moveonly branch 2 times, most recently from a94ab79 to c3a5f99 Compare February 18, 2023 01:54
Applies the FML_DISALLOW_COPY_AND_ASSIGN to non-POD types in the Windows
embedder.

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

@yaakovschectman yaakovschectman left a comment

Choose a reason for hiding this comment

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

LGTM, mod one question

shell/platform/windows/flutter_window.h Show resolved Hide resolved
@cbracken cbracken merged commit c3d9c30 into flutter:main Feb 21, 2023
@cbracken cbracken deleted the windows-fml-moveonly branch February 21, 2023 18:07
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 21, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 21, 2023
…121158)

* 5b00a9579 Roll Skia from 2f05923f825e to a16472080754 (18 revisions) (flutter/engine#39772)

* c3d9c30f3 [Windows] Mark move-only classes as such (flutter/engine#39738)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants