api: fixed a build linking issue on lottie

- something wrong with typeinfo missing in destructor
(don't know reason) and this resolves the problem.

- added override specifier for destructors
This commit is contained in:
Hermet Park 2025-04-17 15:16:38 +09:00 committed by Hermet Park
parent 858205a132
commit 5ce6fca802
3 changed files with 7 additions and 6 deletions

View file

@ -1701,7 +1701,7 @@ public:
class TVG_API SwCanvas final : public Canvas
{
public:
~SwCanvas();
~SwCanvas() override;
/**
* @brief Sets the drawing target for the rasterization.
@ -1745,7 +1745,7 @@ public:
class TVG_API GlCanvas final : public Canvas
{
public:
~GlCanvas();
~GlCanvas() override;
/**
* @brief Sets the drawing target for rasterization.
@ -1794,7 +1794,7 @@ public:
class TVG_API WgCanvas final : public Canvas
{
public:
~WgCanvas();
~WgCanvas() override;
/**
* @brief Sets the drawing target for the rasterization.

View file

@ -20,6 +20,8 @@ namespace tvg
class TVG_API LottieAnimation final : public Animation
{
public:
~LottieAnimation() override;
/**
* @brief Override Lottie properties using slot data.
*

View file

@ -26,9 +26,8 @@
#include "tvgAnimation.h"
LottieAnimation::LottieAnimation()
{
}
LottieAnimation::LottieAnimation() = default;
LottieAnimation::~LottieAnimation() = default;
Result LottieAnimation::override(const char* slot) noexcept