Thilo Graf 79669e0ecd 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.


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
2024-11-03 18:34:25 +01:00
2024-10-21 21:44:57 +02:00
2019-04-24 13:49:02 +02:00
2019-04-16 23:42:51 +02:00
2021-09-17 23:20:40 +02:00
2024-05-21 23:39:33 +02:00
2019-04-24 13:33:34 +02:00
2022-12-03 21:48:05 +01:00
2009-12-08 11:18:17 +00:00
2021-11-07 20:08:44 +01:00

NI \o/ - Neutrino

Languages
C++ 85%
C 12.5%
Shell 0.6%
Makefile 0.6%
M4 0.5%
Other 0.7%