Skip to content

Commit

Permalink
add formal parameter void to lottie_init() and lottie_shutdown()
Browse files Browse the repository at this point in the history
Signed-off-by: wangxuedong <[email protected]>
Change-Id: I40dbe4b07f9581e5042e468d3860e135622580c8
  • Loading branch information
xaowang96 authored and smohantty committed Dec 14, 2021
1 parent 519bd08 commit f3eed9a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/rlottie_capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ typedef struct Lottie_Animation_S Lottie_Animation;
* @ingroup Lottie_Animation
* @internal
*/
RLOTTIE_API void lottie_init();
RLOTTIE_API void lottie_init(void);

/**
* @brief Runs lottie teardown code when rlottie library is loaded
Expand All @@ -74,7 +74,7 @@ RLOTTIE_API void lottie_init();
* @ingroup Lottie_Animation
* @internal
*/
RLOTTIE_API void lottie_shutdown();
RLOTTIE_API void lottie_shutdown(void);

/**
* @brief Constructs an animation object from file path.
Expand Down
4 changes: 2 additions & 2 deletions src/binding/c/lottieanimation_capi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct Lottie_Animation_S

static uint32_t _lottie_lib_ref_count = 0;

RLOTTIE_API void lottie_init()
RLOTTIE_API void lottie_init(void)
{
if (_lottie_lib_ref_count > 0) {
_lottie_lib_ref_count++;
Expand All @@ -54,7 +54,7 @@ RLOTTIE_API void lottie_init()
_lottie_lib_ref_count = 1;
}

RLOTTIE_API void lottie_shutdown()
RLOTTIE_API void lottie_shutdown(void)
{
if (_lottie_lib_ref_count <= 0) {
// lottie_init() is not called before lottie_shutdown()
Expand Down

0 comments on commit f3eed9a

Please sign in to comment.