Remove cast from detail::Values
to std::array<YGValue
Summary: @public When switching to `CompactValue`, casting edges or dimensions to `std::array<YGValue, ...>` will do actual work. In order to avoid that from happening implicitely, we remove the casting operator. Reviewed By: SidharthGuglani Differential Revision: D13464292 fbshipit-source-id: 217065b001a63cfa8adde715063682c583007a4d
This commit is contained in:
committed by
Facebook Github Bot
parent
3df41aefdb
commit
8461aeaef0
@@ -103,7 +103,7 @@ bool YGFloatIsUndefined(const float value) {
|
||||
}
|
||||
|
||||
const YGValue* YGComputedEdgeValue(
|
||||
const std::array<YGValue, YGEdgeCount>& edges,
|
||||
const facebook::yoga::detail::Values<YGEdgeCount>& edges,
|
||||
const YGEdge edge,
|
||||
const YGValue* const defaultValue) {
|
||||
if (edges[edge].unit != YGUnitUndefined) {
|
||||
|
Reference in New Issue
Block a user