common: fix typos & remove unused var

This commit is contained in:
Mira Grudzinska 2024-06-04 01:22:01 +02:00 committed by Hermet Park
parent 5e9b07ea54
commit f14be7c33b
3 changed files with 4 additions and 5 deletions

View file

@ -1271,7 +1271,7 @@ static void _buildReference(LottieComposition* comp, LottieLayer* layer)
} }
static void _bulidHierarchy(LottieGroup* parent, LottieLayer* child) static void _buildHierarchy(LottieGroup* parent, LottieLayer* child)
{ {
if (child->pidx == -1) return; if (child->pidx == -1) return;
@ -1343,11 +1343,11 @@ static bool _buildComposition(LottieComposition* comp, LottieGroup* parent)
if (child->matteTarget) { if (child->matteTarget) {
//parenting //parenting
_bulidHierarchy(parent, child->matteTarget); _buildHierarchy(parent, child->matteTarget);
//precomp referencing //precomp referencing
if (child->matteTarget->rid) _buildReference(comp, child->matteTarget); if (child->matteTarget->rid) _buildReference(comp, child->matteTarget);
} }
_bulidHierarchy(parent, child); _buildHierarchy(parent, child);
//attach the necessary font data //attach the necessary font data
if (child->type == LottieLayer::Text) _attachFont(comp, child); if (child->type == LottieLayer::Text) _attachFont(comp, child);

View file

@ -67,7 +67,7 @@ public:
//Marker Supports //Marker Supports
uint32_t markersCnt(); uint32_t markersCnt();
const char* markers(uint32_t index); const char* markers(uint32_t index);
bool segment(const char* marker, float& beign, float& end); bool segment(const char* marker, float& begin, float& end);
private: private:
bool header(); bool header();

View file

@ -78,7 +78,6 @@ struct SwShapeTask : SwTask
{ {
SwShape shape; SwShape shape;
const RenderShape* rshape = nullptr; const RenderShape* rshape = nullptr;
bool cmpStroking = false;
bool clipper = false; bool clipper = false;
/* We assume that if the stroke width is greater than 2, /* We assume that if the stroke width is greater than 2,