diff --git a/src/calibre/srv/fast_css_transform.cpp b/src/calibre/srv/fast_css_transform.cpp index 033f9aff37..49d40bd0a7 100644 --- a/src/calibre/srv/fast_css_transform.cpp +++ b/src/calibre/srv/fast_css_transform.cpp @@ -181,7 +181,7 @@ enum class PropertyType : unsigned int { font_size, page_break, non_standard_writing_mode }; -constexpr auto known_properties = frozen::make_unordered_map({ +constexpr const auto known_properties = frozen::make_unordered_map({ {"font-size", PropertyType::font_size}, {"font", PropertyType::font_size}, @@ -193,7 +193,7 @@ constexpr auto known_properties = frozen::make_unordered_map({ +constexpr const auto font_size_keywords = frozen::make_unordered_map({ {"xx-small", "0.5rem"}, {"x-small", "0.625rem"}, {"small", "0.8rem"}, @@ -204,7 +204,7 @@ constexpr auto font_size_keywords = frozen::make_unordered_map({ +constexpr const auto absolute_length_units = frozen::make_unordered_map({ {"mm", 2.8346456693}, {"cm", 28.346456693}, {"in", 72},