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

Use std::string_view in mod_tracker #74565

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

anothersimulacrum
Copy link
Member

Summary

None

Purpose of change

Cherry-pick some changes from #74514

Use string_view and appease clang-tidy on std::string_view.

Describe the solution

Use std::string_view.

Also, b1c7770 deduplicates some code.

Describe alternatives you've considered

Testing

See clang-tidy.

Additional context

@github-actions github-actions bot added Bionics CBM (Compact Bionic Modules) Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies [C++] Changes (can be) made in C++. Previously named `Code` Martial Arts Arts, Techniques, weapons and anything touching martial arts. EOC: Effects On Condition Anything concerning Effects On Condition json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Jun 15, 2024
There's no reason for it to use std::string &
This is copy/pasted from the function, so just call the function.
@anothersimulacrum anothersimulacrum force-pushed the mod_tracker_string_view branch from b1c7770 to 179e09b Compare June 16, 2024 00:26
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Jun 16, 2024
@dseguin dseguin merged commit d1a5a81 into CleverRaven:master Jun 17, 2024
22 of 26 checks passed
@anothersimulacrum anothersimulacrum deleted the mod_tracker_string_view branch June 17, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Bionics CBM (Compact Bionic Modules) [C++] Changes (can be) made in C++. Previously named `Code` EOC: Effects On Condition Anything concerning Effects On Condition json-styled JSON lint passed, label assigned by github actions Martial Arts Arts, Techniques, weapons and anything touching martial arts. Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants