mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
lottie: --compiler warnings on clang
removed uninitialized value and override marks
This commit is contained in:
parent
e002d68338
commit
1e1be53136
2 changed files with 3 additions and 3 deletions
|
@ -844,7 +844,7 @@ struct LottieGroup : LottieObject, LottieRenderPooler<tvg::Shape>
|
||||||
|
|
||||||
void prepare(LottieObject::Type type = LottieObject::Group);
|
void prepare(LottieObject::Type type = LottieObject::Group);
|
||||||
bool mergeable() override { return allowMerge; }
|
bool mergeable() override { return allowMerge; }
|
||||||
LottieProperty* property(uint16_t ix);
|
LottieProperty* property(uint16_t ix) override;
|
||||||
|
|
||||||
LottieObject* content(unsigned long id)
|
LottieObject* content(unsigned long id)
|
||||||
{
|
{
|
||||||
|
@ -880,7 +880,7 @@ struct LottieLayer : LottieGroup
|
||||||
bool mergeable() override { return false; }
|
bool mergeable() override { return false; }
|
||||||
void prepare(RGB24* color = nullptr);
|
void prepare(RGB24* color = nullptr);
|
||||||
float remap(LottieComposition* comp, float frameNo, LottieExpressions* exp);
|
float remap(LottieComposition* comp, float frameNo, LottieExpressions* exp);
|
||||||
LottieProperty* property(uint16_t ix);
|
LottieProperty* property(uint16_t ix) override;
|
||||||
bool assign(const char* layer, uint32_t ix, const char* var, float val);
|
bool assign(const char* layer, uint32_t ix, const char* var, float val);
|
||||||
|
|
||||||
char* name = nullptr;
|
char* name = nullptr;
|
||||||
|
|
|
@ -242,10 +242,10 @@ bool LottieParser::getValue(ColorStop& color)
|
||||||
|
|
||||||
bool LottieParser::getValue(Array<Point>& pts)
|
bool LottieParser::getValue(Array<Point>& pts)
|
||||||
{
|
{
|
||||||
|
Point pt{};
|
||||||
enterArray();
|
enterArray();
|
||||||
while (nextArrayValue()) {
|
while (nextArrayValue()) {
|
||||||
enterArray();
|
enterArray();
|
||||||
Point pt;
|
|
||||||
getValue(pt);
|
getValue(pt);
|
||||||
pts.push(pt);
|
pts.push(pt);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue