Codechange: rename byte to uint8_t (#12308)

This commit is contained in:
Patric Stout
2024-03-16 23:59:32 +01:00
committed by GitHub
parent bd7120bae4
commit a3cfd23cf9
355 changed files with 1654 additions and 1656 deletions

View File

@@ -20,7 +20,7 @@
/**
* Type of news.
*/
enum NewsType : byte {
enum NewsType : uint8_t {
NT_ARRIVAL_COMPANY, ///< First vehicle arrived for company
NT_ARRIVAL_OTHER, ///< First vehicle arrived for competitor
NT_ACCIDENT, ///< An accident or disaster has occurred
@@ -49,7 +49,7 @@ enum NewsType : byte {
* You have to make sure, #ChangeVehicleNews catches the DParams of your message.
* This is NOT ensured by the references.
*/
enum NewsReferenceType : byte {
enum NewsReferenceType : uint8_t {
NR_NONE, ///< Empty reference
NR_TILE, ///< Reference tile. Scroll to tile when clicking on the news.
NR_VEHICLE, ///< Reference vehicle. Scroll to vehicle when clicking on the news. Delete news when vehicle is deleted.
@@ -99,7 +99,7 @@ enum NewsDisplay {
*/
struct NewsTypeData {
const char * const name; ///< Name
const byte age; ///< Maximum age of news items (in days)
const uint8_t age; ///< Maximum age of news items (in days)
const SoundFx sound; ///< Sound
/**
@@ -108,7 +108,7 @@ struct NewsTypeData {
* @param age The maximum age for these messages.
* @param sound The sound to play.
*/
NewsTypeData(const char *name, byte age, SoundFx sound) :
NewsTypeData(const char *name, uint8_t age, SoundFx sound) :
name(name),
age(age),
sound(sound)