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

[Windows] Replace memset with C++ alternatives#35312

Merged
cbracken merged 1 commit intoflutter:mainfrom
cbracken:bye-bye-mon-memset
Aug 10, 2022
Merged

[Windows] Replace memset with C++ alternatives#35312
cbracken merged 1 commit intoflutter:mainfrom
cbracken:bye-bye-mon-memset

Conversation

@cbracken
Copy link
Member

Eliminate a few uses of memset in the code, replacing them with C++
alternatives, like using initialiser list syntax and std::array + fill.
This avoids some double-hardcoding of array length in the code.

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.

Eliminate a few uses of memset in the code, replacing them with C++
alternatives, like using initialiser list syntax and std::array + fill.
This avoids some double-hardcoding of array length in the code.
@cbracken cbracken added the tech-debt Technical debt, code quality, testing, etc. label Aug 10, 2022
Copy link
Member

@loic-sharma loic-sharma left a comment

Choose a reason for hiding this comment

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

LGTM

@cbracken cbracken merged commit 98c0699 into flutter:main Aug 10, 2022
@cbracken cbracken deleted the bye-bye-mon-memset branch August 10, 2022 18:40
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 10, 2022
emilyabest pushed a commit to emilyabest/engine that referenced this pull request Aug 12, 2022
Eliminate a few uses of memset in the code, replacing them with C++
alternatives, like using initialiser list syntax and std::array + fill.
This avoids some double-hardcoding of array length in the code.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

platform-windows tech-debt Technical debt, code quality, testing, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants