@@ -126,6 +126,7 @@ icc_device_class_name(const std::string& device_class)
126
126
static const char *
127
127
icc_color_space_name (string_view color_space)
128
128
{
129
+ // clang-format off
129
130
static const std::unordered_map<std::string, const char *> color_space_names = {
130
131
{ " XYZ " , " XYZ" }, { " Lab " , " CIELAB" }, { " Luv " , " CIELUV" },
131
132
{ " YCbr" , " YCbCr" }, { " Yxy " , " CIEYxy" }, { " RGB " , " RGB" },
@@ -137,6 +138,7 @@ icc_color_space_name(string_view color_space)
137
138
{ " BCLR" , " 12 color" }, { " CCLR" , " 13 color" }, { " DCLR" , " 14 color" },
138
139
{ " ECLR" , " 15 color" }, { " FCLR" , " 16 color" },
139
140
};
141
+ // clang-format on
140
142
// std::unordered_map::operator[](const Key& key) will add the key to the map if
141
143
// it doesn't exist. This isn't what is intended and isn't thread safe.
142
144
// Instead, just do the lookup and return the value or a nullptr.
@@ -149,12 +151,13 @@ icc_color_space_name(string_view color_space)
149
151
static const char *
150
152
icc_primary_platform_name (const std::string& platform)
151
153
{
152
- static const std::unordered_map<std::string, const char *> primary_platforms = {
153
- { " APPL" , " Apple Computer, Inc." },
154
- { " MSFT" , " Microsoft Corporation" },
155
- { " SGI " , " Silicon Graphics, Inc." },
156
- { " SUNW" , " Sun Microsystems, Inc." },
157
- };
154
+ static const std::unordered_map<std::string, const char *> primary_platforms
155
+ = {
156
+ { " APPL" , " Apple Computer, Inc." },
157
+ { " MSFT" , " Microsoft Corporation" },
158
+ { " SGI " , " Silicon Graphics, Inc." },
159
+ { " SUNW" , " Sun Microsystems, Inc." },
160
+ };
158
161
// std::unordered_map::operator[](const Key& key) will add the key to the map if
159
162
// it doesn't exist. This isn't what is intended and isn't thread safe.
160
163
// Instead, just do the lookup and return the value or a nullptr.
0 commit comments