Skip to content

Add git_strarray wrapper #17

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

Merged
merged 4 commits into from
Jul 17, 2025
Merged

Conversation

SandrineP
Copy link
Collaborator

Add git_strarray wrapper

Copy link
Member

@JohanMabille JohanMabille left a comment

Choose a reason for hiding this comment

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

The move assignment operator is missing.


git_strarray_wrapper::~git_strarray_wrapper()
{
delete[] m_array.strings;
Copy link
Member

Choose a reason for hiding this comment

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

The destructor should also reset the pointer to nullptr after its deletion, and set m_array.size to 0, so many calls to the destructor are harmless.

This could be moved in a private reset_str_array method that could be called from the destructor and other methods.

@ianthomas23
Copy link
Member

Thanks both!

@ianthomas23 ianthomas23 merged commit 45617f2 into QuantStack:main Jul 17, 2025
1 check 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.

3 participants