mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 15:02:50 +02:00
79669e0ecd6bad5235bf6c38ac431380ef4feeca
- Replaced manual dynamic memory allocation with std::vector in
setButtonLabels(const button_label*...) and setButtonLabels(const std::vector<button_label_cc>&...).
- Reserved vector capacity upfront to match label_count, optimizing memory usage.
- Improved safety and readability by removing manual delete[] calls and
handling memory cleanup through vector's automatic management.
Origin commit data
------------------
Branch: ni/coolstream
Commit: 646d24320f
Author: Thilo Graf <dbt@novatux.de>
Date: 2024-11-03 (Sun, 03 Nov 2024)
Origin message was:
------------------
Refactor setButtonLabels() to use std::vector for safer memory management
- Replaced manual dynamic memory allocation with std::vector in
setButtonLabels(const button_label*...) and setButtonLabels(const std::vector<button_label_cc>&...).
- Reserved vector capacity upfront to match label_count, optimizing memory usage.
- Improved safety and readability by removing manual delete[] calls and
handling memory cleanup through vector's automatic management.
------------------
This commit was generated by Migit
…
NI \o/ - Neutrino
Description
Languages
C++
85%
C
12.5%
Shell
0.6%
Makefile
0.6%
M4
0.5%
Other
0.7%