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

[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

@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 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.

2 participants