inline trivial constructors / methods

Summary:
@public

inlines some trivial constructors, destructors, and methods.

Reviewed By: astreet

Differential Revision: D8912691

fbshipit-source-id: 79840ef3322676deebed99391390d6c1796963b5
This commit is contained in:
David Aurelio
2018-07-19 09:51:25 -07:00
committed by Facebook Github Bot
parent f172d5d41c
commit f95e3b49e9
6 changed files with 28 additions and 61 deletions

View File

@@ -32,12 +32,14 @@ struct YGStyle {
std::array<YGValue, 2> dimensions;
std::array<YGValue, 2> minDimensions;
std::array<YGValue, 2> maxDimensions;
// Yoga specific properties, not compatible with flexbox specification
YGFloatOptional aspectRatio;
YGStyle();
// Yoga specific properties, not compatible with flexbox specification
bool operator==(const YGStyle& style);
bool operator!=(YGStyle style);
~YGStyle();
bool operator!=(YGStyle style) {
return !(*this == style);
}
~YGStyle() = default;
};