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;
@ -1343,11 +1343,11 @@ static bool _buildComposition(LottieComposition* comp, LottieGroup* parent)
if (child->matteTarget) {
//parenting
_bulidHierarchy(parent, child->matteTarget);
_buildHierarchy(parent, child->matteTarget);
//precomp referencing
if (child->matteTarget->rid) _buildReference(comp, child->matteTarget);
}
_bulidHierarchy(parent, child);
_buildHierarchy(parent, child);
//attach the necessary font data
if (child->type == LottieLayer::Text) _attachFont(comp, child);

View file

@ -67,7 +67,7 @@ public:
//Marker Supports
uint32_t markersCnt();
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:
bool header();

View file

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