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

EbmlString/UTFstring/EbmlUnicodeString: automatic memory management #178

Merged
merged 7 commits into from
Dec 26, 2023

Conversation

mbunkus
Copy link
Contributor

@mbunkus mbunkus commented Dec 22, 2023

No description provided.

@mbunkus mbunkus requested a review from robUx4 December 22, 2023 16:51
@mbunkus mbunkus added api-break breaks the API (e.g. programs using it will have to adjust their source code) abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) labels Dec 22, 2023
@mbunkus
Copy link
Contributor Author

mbunkus commented Dec 22, 2023

Inspired by #111.

@mbunkus
Copy link
Contributor Author

mbunkus commented Dec 22, 2023

Gnarf… I'll fix those. I thought data() returned a non-const void *

@mbunkus mbunkus force-pushed the string-wstring-automatic-memory-management branch from 2cf128d to 33ed443 Compare December 22, 2023 17:07
@mbunkus
Copy link
Contributor Author

mbunkus commented Dec 22, 2023

Fixed.

src/EbmlUnicodeString.cpp Outdated Show resolved Hide resolved
@neheb
Copy link
Contributor

neheb commented Dec 22, 2023

Very nice overall.

src/EbmlUnicodeString.cpp Outdated Show resolved Hide resolved
ebml/EbmlUnicodeString.h Show resolved Hide resolved
@robUx4
Copy link
Contributor

robUx4 commented Dec 23, 2023

We may add some tests to test before and after usage and conversion.

@mbunkus mbunkus requested review from neheb and robUx4 December 23, 2023 08:34
@robUx4
Copy link
Contributor

robUx4 commented Dec 26, 2023

Merging as all the points mentioned by @neheb have been addressed.

@robUx4 robUx4 merged commit ae9bb25 into master Dec 26, 2023
20 checks passed
@robUx4 robUx4 deleted the string-wstring-automatic-memory-management branch December 26, 2023 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abi-break breaks the ABI (e.g. programs linked against the library have to be recompiled) api-break breaks the API (e.g. programs using it will have to adjust their source code)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants