Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Removed one of the heap allocations. #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LokiMidgard
Copy link

When I saw your code I noticed you often use new.

A suggestion from me would to use & instead. I'm not a pro at c++ but one thing I've lerned was, the less new you have the better.

I think the code is totally correct as it is. But when you need to search a memory leak, you will most likly have to check many new statements. The less of those the better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant