Skip to content

refactor: replace raw new[] with std::make_unique in getCpuInfo#920

Merged
Disservin merged 1 commit intoDisservin:masterfrom
Adi-183:replace-new-with-make-unique
Sep 22, 2025
Merged

refactor: replace raw new[] with std::make_unique in getCpuInfo#920
Disservin merged 1 commit intoDisservin:masterfrom
Adi-183:replace-new-with-make-unique

Conversation

@Adi-183
Copy link
Copy Markdown
Contributor

@Adi-183 Adi-183 commented Sep 22, 2025

According to Scott Meyers Effective Modern C++
Item 21: Prefer std::make_unique and std::make_shared to direct use of new.

This is my first contribution, I have made sure the unit tests have passed.

@Disservin
Copy link
Copy Markdown
Owner

We are still using unique pointers but yea this is more idiomatic c++ so fine with me

@Disservin Disservin merged commit a4e98a2 into Disservin:master Sep 22, 2025
18 checks passed
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