Skip to content

Code Quality: Address shadowing #840

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

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

kheaactua
Copy link
Contributor

  • Addresses most shadowing variables
  • Fixes some old style C-casts

@kheaactua kheaactua force-pushed the shadowing branch 2 times, most recently from b29d9b3 to fb06964 Compare May 23, 2025 16:43
kheaactua added 3 commits May 29, 2025 14:00
…uality: Address shadowing

Switched to scoped_lock
…! Code Quality: Address shadowing

Removed redundant converters
…p! fixup! fixup! Code Quality: Address shadowing

Removed explicit template from unique_ptr
…up! fixup! fixup! fixup! Code Quality: Address shadowing

Removed explicit template from scoped_lock in files already changed in this commit
@@ -950,7 +950,7 @@ void local_uds_server_endpoint_impl::print_status() {
std::lock_guard<std::mutex> its_lock(mutex_);
connections_t its_connections;
{
std::lock_guard<std::mutex> its_lock(connections_mutex_);
std::lock_guard<std::mutex> its_lock_inner(connections_mutex_);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
std::lock_guard<std::mutex> its_lock_inner(connections_mutex_);
std::scoped_lock its_lock_inner{connections_mutex_};

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in b856ea89

…up! fixup! fixup! fixup! fixup! Code Quality: Address shadowing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants