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:
David Aurelio
2018-12-14 09:20:27 -08:00
committed by Facebook Github Bot
parent 3df41aefdb
commit 8461aeaef0
3 changed files with 6 additions and 15 deletions

View File

@@ -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) {