mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Mark the constexprs as static
This commit is contained in:
parent
6c972df3ba
commit
a53ea9342e
@ -181,7 +181,7 @@ enum class PropertyType : unsigned int {
|
|||||||
font_size, page_break, non_standard_writing_mode
|
font_size, page_break, non_standard_writing_mode
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr const auto known_properties = frozen::make_unordered_map<frozen::string, PropertyType>({
|
constexpr static const auto known_properties = frozen::make_unordered_map<frozen::string, PropertyType>({
|
||||||
{"font-size", PropertyType::font_size},
|
{"font-size", PropertyType::font_size},
|
||||||
{"font", PropertyType::font_size},
|
{"font", PropertyType::font_size},
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ constexpr const auto known_properties = frozen::make_unordered_map<frozen::strin
|
|||||||
{"-epub-writing-mode", PropertyType::non_standard_writing_mode},
|
{"-epub-writing-mode", PropertyType::non_standard_writing_mode},
|
||||||
});
|
});
|
||||||
|
|
||||||
constexpr const auto font_size_keywords = frozen::make_unordered_map<frozen::string, frozen::string>({
|
constexpr static const auto font_size_keywords = frozen::make_unordered_map<frozen::string, frozen::string>({
|
||||||
{"xx-small", "0.5rem"},
|
{"xx-small", "0.5rem"},
|
||||||
{"x-small", "0.625rem"},
|
{"x-small", "0.625rem"},
|
||||||
{"small", "0.8rem"},
|
{"small", "0.8rem"},
|
||||||
@ -204,7 +204,7 @@ constexpr const auto font_size_keywords = frozen::make_unordered_map<frozen::str
|
|||||||
{"xxx-large", "2.55rem"}
|
{"xxx-large", "2.55rem"}
|
||||||
});
|
});
|
||||||
|
|
||||||
constexpr const auto absolute_length_units = frozen::make_unordered_map<frozen::string, double>({
|
constexpr static const auto absolute_length_units = frozen::make_unordered_map<frozen::string, double>({
|
||||||
{"mm", 2.8346456693},
|
{"mm", 2.8346456693},
|
||||||
{"cm", 28.346456693},
|
{"cm", 28.346456693},
|
||||||
{"in", 72},
|
{"in", 72},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user