mirror of
https://github.com/Ralim/IronOS.git
synced 2025-02-26 07:53:55 +00:00
Change TranslationStrings to pointer
This commit is contained in:
@@ -61,8 +61,6 @@ enum class SettingsItemIndex : uint8_t {
|
||||
NUM_ITEMS,
|
||||
};
|
||||
|
||||
extern const char TranslationStrings[];
|
||||
|
||||
struct TranslationIndexTable {
|
||||
uint16_t SettingsCalibrationWarning;
|
||||
uint16_t SettingsResetWarning;
|
||||
@@ -114,6 +112,7 @@ struct TranslationIndexTable {
|
||||
};
|
||||
|
||||
extern const TranslationIndexTable *const Tr;
|
||||
extern const char *const TranslationStrings;
|
||||
|
||||
constexpr uint8_t settings_item_index(const SettingsItemIndex i) { return static_cast<uint8_t>(i); }
|
||||
// Use a constexpr function for type-checking.
|
||||
|
||||
Reference in New Issue
Block a user