Skip to content

Codechange: remove manual pointer/array management in infowriter#62

Merged
PeterN merged 1 commit into
OpenTTD:masterfrom
PeterN:infowriter
Mar 9, 2026
Merged

Codechange: remove manual pointer/array management in infowriter#62
PeterN merged 1 commit into
OpenTTD:masterfrom
PeterN:infowriter

Conversation

@PeterN

@PeterN PeterN commented Mar 9, 2026

Copy link
Copy Markdown
Member

The infowriter class has a custom resizable container, with manual memory management.

Use std::vector<std::unique_ptr<>> instead of this custom resizable container.

Also fix virtual destructor definition.

Use std::vector<std::unique_ptr<>> instead of a custom resizable container.
@PeterN PeterN changed the title Codechange: Remove manual pointer/array management in infowriter. Codechange: remove manual pointer/array management in infowriter Mar 9, 2026
@PeterN PeterN merged commit 0d4d4f5 into OpenTTD:master Mar 9, 2026
6 checks passed
@PeterN PeterN deleted the infowriter branch March 9, 2026 21:37
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.

2 participants