Skip to content

Commit 8475dcc

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Rename template type not to collide with existing identifier (#55741)
Summary: Pull Request resolved: #55741 Changelog: [Internal] Changes `Delim` type name to `DelimT`, aligning it to other themplate types, which are suffixed with `T`. Reviewed By: cipolleschi Differential Revision: D94361540 fbshipit-source-id: fccb2725befbd61fb37bda2a4f9bea4cb96a8c22
1 parent 8bf035d commit 8475dcc

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • packages/react-native/ReactCommon/react/renderer/css

packages/react-native/ReactCommon/react/renderer/css/CSSList.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@
1717

1818
namespace facebook::react {
1919

20-
template <CSSMaybeCompoundDataType T, CSSDelimiter Delim>
20+
template <CSSMaybeCompoundDataType T, CSSDelimiter Delimeter>
2121
struct CSSList;
2222

23-
template <CSSDataType AllowedTypeT, CSSDelimiter Delim>
24-
struct CSSList<AllowedTypeT, Delim> : public std::vector<AllowedTypeT> {};
23+
template <CSSDataType AllowedTypeT, CSSDelimiter Delimeter>
24+
struct CSSList<AllowedTypeT, Delimeter> : public std::vector<AllowedTypeT> {};
2525

26-
template <CSSValidCompoundDataType AllowedTypesT, CSSDelimiter Delim>
27-
struct CSSList<AllowedTypesT, Delim> : public std::vector<AllowedTypesT> {};
26+
template <CSSValidCompoundDataType AllowedTypesT, CSSDelimiter Delimeter>
27+
struct CSSList<AllowedTypesT, Delimeter> : public std::vector<AllowedTypesT> {};
2828

29-
template <CSSMaybeCompoundDataType AllowedTypeT, CSSDelimiter Delim>
30-
struct CSSDataTypeParser<CSSList<AllowedTypeT, Delim>> {
31-
static inline auto consume(CSSValueParser &parser) -> std::optional<CSSList<AllowedTypeT, Delim>>
29+
template <CSSMaybeCompoundDataType AllowedTypeT, CSSDelimiter Delimeter>
30+
struct CSSDataTypeParser<CSSList<AllowedTypeT, Delimeter>> {
31+
static inline auto consume(CSSValueParser &parser) -> std::optional<CSSList<AllowedTypeT, Delimeter>>
3232
{
33-
CSSList<AllowedTypeT, Delim> result;
33+
CSSList<AllowedTypeT, Delimeter> result;
3434
for (auto nextValue = parser.parseNextValue<AllowedTypeT>(); !std::holds_alternative<std::monostate>(nextValue);
35-
nextValue = parser.parseNextValue<AllowedTypeT>(Delim)) {
35+
nextValue = parser.parseNextValue<AllowedTypeT>(Delimeter)) {
3636
// Copy from the variant of possible values to the element (either the
3737
// concrete type, or a variant of compound types which exlcudes the
3838
// possibility of std::monostate for parse error)

0 commit comments

Comments
 (0)