Skip to content

Commit 47d1d2b

Browse files
generatedunixname537391475639613meta-codesync[bot]
authored andcommitted
xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp (facebook#54024)
Summary: Pull Request resolved: facebook#54024 Reviewed By: rshest Differential Revision: D83641704 fbshipit-source-id: 2d102bc1078a951aefee2097914477c6508cc988
1 parent 0e03adc commit 47d1d2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/react-native/ReactCommon/react/renderer/attributedstring/TextAttributes.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,13 +176,13 @@ bool TextAttributes::operator==(const TextAttributes& rhs) const {
176176

177177
TextAttributes TextAttributes::defaultTextAttributes() {
178178
static auto textAttributes = [] {
179-
auto textAttributes = TextAttributes{};
179+
auto defaultAttrs = TextAttributes{};
180180
// Non-obvious (can be different among platforms) default text attributes.
181-
textAttributes.foregroundColor = blackColor();
182-
textAttributes.backgroundColor = clearColor();
183-
textAttributes.fontSize = 14.0;
184-
textAttributes.fontSizeMultiplier = 1.0;
185-
return textAttributes;
181+
defaultAttrs.foregroundColor = blackColor();
182+
defaultAttrs.backgroundColor = clearColor();
183+
defaultAttrs.fontSize = 14.0;
184+
defaultAttrs.fontSizeMultiplier = 1.0;
185+
return defaultAttrs;
186186
}();
187187
return textAttributes;
188188
}

0 commit comments

Comments
 (0)