mirror of
https://github.com/status-im/react-native.git
synced 2025-01-30 19:25:11 +00:00
52ed882332
Summary: @public When we copy-construct ShadowNode, we don't need to retain a source shadow node, so there is no need to pass it as a `shared_ptr`. Passing an argument to constructor as `const &` is also more idiomatic in C++. Reviewed By: mdvacca Differential Revision: D8988384 fbshipit-source-id: 1279d9185fa1b4b82fd26e3040bd62fa9495b4d3
29 lines
564 B
C++
29 lines
564 B
C++
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "AccessibleShadowNode.h"
|
|
|
|
#include <memory>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
AccessibleShadowNode::AccessibleShadowNode(
|
|
const SharedAccessibilityProps &props
|
|
) {
|
|
assert(props);
|
|
}
|
|
|
|
AccessibleShadowNode::AccessibleShadowNode(
|
|
const AccessibleShadowNode &shadowNode,
|
|
const SharedAccessibilityProps &props
|
|
) {
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|