Skip to content
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

fix: (VERA) Prefer smart pointers over raw pointers #277

Conversation

tcoyvwac
Copy link
Contributor

Hi @patriciogonzalezvivo,

As the project is a C++11 project, this PR helps replace some raw pointers with smart pointers to help prevent unknown memory leaks.


(This is a twin PR, but for the VERA branch of the project, as requested in PR:#276's comment)

@tcoyvwac tcoyvwac changed the title sandbox:(VERA): prefer smart pointers over raw pointers fix: (VERA): Prefer smart pointers over raw pointers Jul 29, 2022
@tcoyvwac tcoyvwac changed the title fix: (VERA): Prefer smart pointers over raw pointers fix: (VERA) Prefer smart pointers over raw pointers Jul 29, 2022
@patriciogonzalezvivo
Copy link
Owner

Exiting!

sandbox.cpp:
* Made cursor vbo use std::unique_ptr.
@tcoyvwac tcoyvwac force-pushed the fix/vera/prefer-smart-pointer-over-raw-pointer branch from 6db639f to c8f7145 Compare July 30, 2022 11:52
sandbox:
* Made m_plot_texture use std::unique_ptr.
sceneRender:
* Made m_grid_vbo use std::unique_ptr.
sceneRender:
* Made m_axis_vbo use std::unique_ptr.
sceneRender:
* Made m_floor_vbo use std::unique_ptr.
sceneRender:
* Made m_lightUI_vbo use std::unique_ptr.
sceneRender:
* Made m_cubemap_vbo use std::unique_ptr.
@tcoyvwac
Copy link
Contributor Author

Ok @patriciogonzalezvivo, these twin PRs are basically finished.

If there are no extra requests or recommendations, feel free to merge please! 😸

@patriciogonzalezvivo patriciogonzalezvivo merged commit b1cef59 into patriciogonzalezvivo:vera Aug 1, 2022
@patriciogonzalezvivo
Copy link
Owner

Thank you!

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.

None yet

2 participants