Mark the constexprs as static

This commit is contained in:
Kovid Goyal 2021-03-18 20:27:46 +05:30
parent 6c972df3ba
commit a53ea9342e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -181,7 +181,7 @@ enum class PropertyType : unsigned int {
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", 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},
});
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"},
{"x-small", "0.625rem"},
{"small", "0.8rem"},
@ -204,7 +204,7 @@ constexpr const auto font_size_keywords = frozen::make_unordered_map<frozen::str
{"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},
{"cm", 28.346456693},
{"in", 72},