Codechange: Specify underlying type for all enums excluding those exposed to scripts. (#13383)
This commit is contained in:
@@ -44,7 +44,7 @@ enum DistributionType : uint8_t {
|
||||
* Refreshing a link makes just sure a minimum capacity is kept. Increasing
|
||||
* actually adds the given capacity.
|
||||
*/
|
||||
enum EdgeUpdateMode {
|
||||
enum EdgeUpdateMode : uint8_t {
|
||||
EUM_INCREASE = 1, ///< Increase capacity.
|
||||
EUM_REFRESH = 1 << 1, ///< Refresh capacity.
|
||||
EUM_RESTRICTED = 1 << 2, ///< Use restricted link.
|
||||
|
||||
@@ -25,7 +25,7 @@ protected:
|
||||
* Various flags about properties of the last examined link that might have
|
||||
* an influence on the next one.
|
||||
*/
|
||||
enum RefreshFlags {
|
||||
enum RefreshFlags : uint8_t {
|
||||
USE_NEXT, ///< There was a conditional jump. Try to use the given next order when looking for a new one.
|
||||
HAS_CARGO, ///< Consist could leave the last stop where it could interact with cargo carrying cargo (i.e. not an "unload all" + "no loading" order).
|
||||
WAS_REFIT, ///< Consist was refit since the last stop where it could interact with cargo.
|
||||
|
||||
Reference in New Issue
Block a user