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

Firestore: Remove unnecessary brace initialization in call to AlphaNum #12281

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

dconeybe
Copy link
Contributor

@dconeybe dconeybe commented Jan 16, 2024

Remove unnecessary brace initialization in call to AlphaNum. This does not change any functionality, but merely improves the code quality to use AlphaNum in the intended manner.

Brace-initialized calls to AlphaNum are unsupported, and are misused as function parameters, which cause problems when attempts are made to modify the implementations of functions such as StrCat. While this particular usage (inside a base-class constructor call) itself isn't problematic, it does blocking brace initialization in the future in Google's internal source code repository, hence this change. Googlers see cl/598865604 for details.

#no-changelog

@dconeybe dconeybe self-assigned this Jan 16, 2024
@google-oss-bot
Copy link

Coverage Report 1

Affected Products

  • FirebaseFirestore-iOS-FirebaseFirestoreInternal.framework

    Overall coverage changed from 88.10% (795c800) to 88.17% (47bd539) by +0.07%.

    FilenameBase (795c800)Merge (47bd539)Diff
    exception.cc23.68%84.21%+60.53%
    leveldb_key.cc98.82%98.14%-0.69%
    task.cc94.78%96.52%+1.74%

Test Logs

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/78RbnoEu0i.html

@dconeybe dconeybe marked this pull request as ready for review January 16, 2024 18:56
@dconeybe dconeybe requested a review from milaGGL January 18, 2024 19:47
Copy link
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

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

LGTM

@dconeybe dconeybe merged commit 82b453c into main Jan 18, 2024
50 checks passed
@dconeybe dconeybe deleted the dconeybe/AlphaNumBraceInitRemoval branch January 18, 2024 20:37
@firebase firebase locked and limited conversation to collaborators Feb 18, 2024
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