Просмотр исходного кода

ips_layer: Remove unnecessary explicit std::pair constructor in std::array

Makes the layout of the array consistent, by making all elements match,
instead of special-casing the first one.
Lioncash 7 лет назад
Родитель
Сommit
9ff743bc0a
1 измененных файлов с 13 добавлено и 5 удалено
  1. 13 5
      src/core/file_sys/ips_layer.cpp

+ 13 - 5
src/core/file_sys/ips_layer.cpp

@@ -22,11 +22,19 @@ enum class IPSFileType {
     Error,
     Error,
 };
 };
 
 
-constexpr std::array<std::pair<const char*, const char*>, 11> ESCAPE_CHARACTER_MAP{
-    std::pair{"\\a", "\a"}, {"\\b", "\b"},  {"\\f", "\f"},  {"\\n", "\n"},
-    {"\\r", "\r"},          {"\\t", "\t"},  {"\\v", "\v"},  {"\\\\", "\\"},
-    {"\\\'", "\'"},         {"\\\"", "\""}, {"\\\?", "\?"},
-};
+constexpr std::array<std::pair<const char*, const char*>, 11> ESCAPE_CHARACTER_MAP{{
+    {"\\a", "\a"},
+    {"\\b", "\b"},
+    {"\\f", "\f"},
+    {"\\n", "\n"},
+    {"\\r", "\r"},
+    {"\\t", "\t"},
+    {"\\v", "\v"},
+    {"\\\\", "\\"},
+    {"\\\'", "\'"},
+    {"\\\"", "\""},
+    {"\\\?", "\?"},
+}};
 
 
 static IPSFileType IdentifyMagic(const std::vector<u8>& magic) {
 static IPSFileType IdentifyMagic(const std::vector<u8>& magic) {
     if (magic.size() != 5)
     if (magic.size() != 5)