Make _appropriateImageDropdownItemsPerRow a constexpr (#10990)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2020-03-21 15:22:18 +01:00
1 parent b9ddcfbb3e
commit 32e589efbe
1 file changed
+1 -1
+1 -1
View File
@@ -22,7 +22,7 @@ constexpr int32_t DROPDOWN_TEXT_MAX_ROWS = 32;
constexpr int32_t DROPDOWN_ITEM_HEIGHT = 12;
static int32_t _appropriateImageDropdownItemsPerRow[34] = {
static constexpr const uint8_t _appropriateImageDropdownItemsPerRow[34] = {
1, 1, 1, 1, 2, 2, 3, 3, 4, 3, 5, 4, 4, 5, 5, 5, 4, 5, 6, 5, 5, 7, 4, 5, 6, 5, 6, 6, 6, 6, 6, 8, 8, 8,
};