You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are currently very few deletions of pointers. There should be a thorough look through of destructors and positions where resources should be deleted.
Alternatively, smart pointers should be used instead of pure pointers.
The text was updated successfully, but these errors were encountered:
I vote for using smart pointers.
Also in some cases like
boolcompare(Obj* o1, Obj* o2)
We should definitely use references instead of pointers as that eliminates the need for null checks.
By using const this also guarantees that the objects are not changed by the functions,
There are currently very few deletions of pointers. There should be a thorough look through of destructors and positions where resources should be deleted.
Alternatively, smart pointers should be used instead of pure pointers.
The text was updated successfully, but these errors were encountered: