Skip to content

avoid most unchecked dereferences of Settings#5878

Merged
firewave merged 2 commits intocppcheck-opensource:mainfrom
firewave:ptr-ref-s
Jan 17, 2024
Merged

avoid most unchecked dereferences of Settings#5878
firewave merged 2 commits intocppcheck-opensource:mainfrom
firewave:ptr-ref-s

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@firewave
Copy link
Copy Markdown
Collaborator Author

I did not file a ticket about detecting what clang-tidy is reporting as that change might be unsafe. Depending on the type making a copy might result in different data in the resulting object and be intentional.

In this case we can get rid of the copy as it is simply unnecessary as reported.

Copy link
Copy Markdown
Collaborator

@danmar danmar left a comment

Choose a reason for hiding this comment

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

lgtm

@firewave firewave merged commit c996bdb into cppcheck-opensource:main Jan 17, 2024
@firewave firewave deleted the ptr-ref-s branch January 17, 2024 20:11
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.

2 participants