mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +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);
|
||||
bool mergeable() override { return allowMerge; }
|
||||
LottieProperty* property(uint16_t ix);
|
||||
LottieProperty* property(uint16_t ix) override;
|
||||
|
||||
LottieObject* content(unsigned long id)
|
||||
{
|
||||
|
@ -880,7 +880,7 @@ struct LottieLayer : LottieGroup
|
|||
bool mergeable() override { return false; }
|
||||
void prepare(RGB24* color = nullptr);
|
||||
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);
|
||||
|
||||
char* name = nullptr;
|
||||
|
|
|
@ -242,10 +242,10 @@ bool LottieParser::getValue(ColorStop& color)
|
|||
|
||||
bool LottieParser::getValue(Array<Point>& pts)
|
||||
{
|
||||
Point pt{};
|
||||
enterArray();
|
||||
while (nextArrayValue()) {
|
||||
enterArray();
|
||||
Point pt;
|
||||
getValue(pt);
|
||||
pts.push(pt);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue