提交 6e61c1b0 编写于 作者: O openharmony_ci 提交者: Gitee

!187 析构中animator不需要额外调用Stop

Merge pull request !187 from wangtiantian/stop
......@@ -42,11 +42,6 @@ UIAbstractScroll::UIAbstractScroll()
dragParentInstead_ = false;
}
UIAbstractScroll::~UIAbstractScroll()
{
scrollAnimator_.Stop();
}
void UIAbstractScroll::MoveChildByOffset(int16_t offsetX, int16_t offsetY)
{
if ((offsetX == 0) && (offsetY == 0)) {
......
......@@ -50,13 +50,6 @@ UICheckBox::UICheckBox()
#endif
}
UICheckBox::~UICheckBox()
{
#if DEFAULT_ANIMATION
checkBoxAnimator_.Stop();
#endif
}
void UICheckBox::SetState(UICheckBoxState state)
{
if (state_ == state) {
......
......@@ -125,7 +125,6 @@ UILabel::UILabel()
UILabel::~UILabel()
{
if (hasAnimator_) {
animator_.animator->Stop();
delete animator_.animator;
animator_.animator = nullptr;
hasAnimator_ = false;
......
......@@ -64,7 +64,7 @@ public:
* @since 1.0
* @version 1.0
*/
virtual ~UIAbstractScroll();
virtual ~UIAbstractScroll() {};
/**
* @brief Obtains the view type.
......
......@@ -84,7 +84,7 @@ public:
* @since 1.0
* @version 1.0
*/
virtual ~UICheckBox();
virtual ~UICheckBox() {};
/**
* @brief Represents a listener for changes of a check box.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册