lottie: --compiler warnings on clang

removed uninitialized value and override marks
This commit is contained in:
Hermet Park 2025-03-28 01:25:31 +09:00
parent e002d68338
commit 1e1be53136
2 changed files with 3 additions and 3 deletions

View file

@ -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;

View file

@ -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);
} }