Skip to content

Commit 053453e

Browse files
committed
clang-format
1 parent d1b31d3 commit 053453e

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/libOpenImageIO/icc.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ icc_device_class_name(const std::string& device_class)
126126
static const char*
127127
icc_color_space_name(string_view color_space)
128128
{
129+
// clang-format off
129130
static const std::unordered_map<std::string, const char*> color_space_names = {
130131
{ "XYZ ", "XYZ" }, { "Lab ", "CIELAB" }, { "Luv ", "CIELUV" },
131132
{ "YCbr", "YCbCr" }, { "Yxy ", "CIEYxy" }, { "RGB ", "RGB" },
@@ -137,6 +138,7 @@ icc_color_space_name(string_view color_space)
137138
{ "BCLR", "12 color" }, { "CCLR", "13 color" }, { "DCLR", "14 color" },
138139
{ "ECLR", "15 color" }, { "FCLR", "16 color" },
139140
};
141+
// clang-format on
140142
// std::unordered_map::operator[](const Key& key) will add the key to the map if
141143
// it doesn't exist. This isn't what is intended and isn't thread safe.
142144
// Instead, just do the lookup and return the value or a nullptr.
@@ -149,12 +151,13 @@ icc_color_space_name(string_view color_space)
149151
static const char*
150152
icc_primary_platform_name(const std::string& platform)
151153
{
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+
};
158161
// std::unordered_map::operator[](const Key& key) will add the key to the map if
159162
// it doesn't exist. This isn't what is intended and isn't thread safe.
160163
// Instead, just do the lookup and return the value or a nullptr.

0 commit comments

Comments
 (0)