未验证 提交 08b2f4ba 编写于 作者: O openharmony_ci 提交者: Gitee

!656 【OpenHarmony开源贡献者计划2022】fix: warning of unused variable 'lastValue'

Merge pull request !656 from rtos_shang/master
......@@ -368,7 +368,9 @@ bool UISlider::OnRotateEvent(const RotateEvent& event)
return UIView::OnRotateEvent(event);
}
cachedRotation_ = 0;
#if ENABLE_VIBRATOR
int32_t lastValue = curValue_;
#endif
SetValue(curValue_ + realRotation);
if (listener_ != nullptr) {
listener_->OnChange(curValue_);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册