[Rpm-maint] [rpm-software-management/rpm] Convert major librpmbuild structs to native C++ allocation / initialization (PR #3099)
Panu Matilainen
notifications at github.com
Thu May 16 05:35:35 UTC 2024
@pmatilai commented on this pull request.
> }
StringBuf freeStringBuf(StringBuf sb)
{
- if (sb) {
- sb->buf = _free(sb->buf);
- sb = _free(sb);
- }
- return sb;
+ delete sb;
There will also need to be stuff like mass-moving to the C++-versions of C headers, converting NULL to nullptr and whatnot.
And I really need to write this stuff down someplace where people can see...
--
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/3099#discussion_r1602643629
You are receiving this because you are subscribed to this thread.
Message ID: <rpm-software-management/rpm/pull/3099/review/2059636630 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20240515/28289044/attachment.html>
More information about the Rpm-maint
mailing list