Skip to content

Commit 34fb790

Browse files
j-piaseckimeta-codesync[bot]
authored andcommitted
Split definition to separate statements (#55572)
Summary: Pull Request resolved: #55572 Changelog: [Internal] Separates enum declaration and declaration of the field of that type. Reviewed By: cortinico Differential Revision: D93477888 fbshipit-source-id: 7e145c498e377be93cfb87230e68ca8f4663c87e
1 parent 5229e50 commit 34fb790

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/react-native/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ struct AccessibilityState {
6666
bool selected{false};
6767
bool busy{false};
6868
std::optional<bool> expanded{std::nullopt};
69-
enum CheckedState { Unchecked, Checked, Mixed, None } checked{None};
69+
enum CheckedState { Unchecked, Checked, Mixed, None };
70+
CheckedState checked{CheckedState::None};
7071
};
7172

7273
constexpr bool operator==(const AccessibilityState &lhs, const AccessibilityState &rhs)

0 commit comments

Comments
 (0)