Skip to content

Conversation

@ckerr
Copy link
Member

@ckerr ckerr commented Nov 26, 2025

Description of Change

Fix most of the warnings uncovered by the first run of @dsanders11's WIP clang-tidy GH Action.

This PR fixes the trivial warnings but leaves google-default-arguments for the next PR because I want to sleep on those two first.

All reviews welcomed. CC @dsanders11 😸

Checklist

Release Notes

Notes: none.

@ckerr ckerr added semver/patch backwards-compatible bug fixes no-backport labels Nov 26, 2025
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Nov 26, 2025
Comment on lines +236 to 238
results.emplace_back(content::PermissionResult(
blink::mojom::PermissionStatus::DENIED,
content::PermissionStatusSource::UNSPECIFIED));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
results.emplace_back(content::PermissionResult(
blink::mojom::PermissionStatus::DENIED,
content::PermissionStatusSource::UNSPECIFIED));
results.emplace_back(
blink::mojom::PermissionStatus::DENIED,
content::PermissionStatusSource::UNSPECIFIED);

IIRC, emplace_back should just take the constructor arguments directly, right?

Comment on lines +246 to 248
results.emplace_back(content::PermissionResult(
blink::mojom::PermissionStatus::GRANTED,
content::PermissionStatusSource::UNSPECIFIED));
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
results.emplace_back(content::PermissionResult(
blink::mojom::PermissionStatus::GRANTED,
content::PermissionStatusSource::UNSPECIFIED));
results.emplace_back(
blink::mojom::PermissionStatus::GRANTED,
content::PermissionStatusSource::UNSPECIFIED);

Same comment as above.

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-backport semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants