mirror of
https://github.com/openharmony/applications_camera_screensaver_app.git
synced 2026-07-21 02:15:29 -04:00
optimize cppcheck warning.
Signed-off-by: leihonglin <leihonglin2@huawei.com>
This commit is contained in:
@@ -33,10 +33,7 @@ public:
|
||||
~EventListener() override = default;
|
||||
|
||||
EventListener(OnEventFunc onClick, OnEventFunc onLongPress)
|
||||
{
|
||||
onClick_ = std::move(onClick);
|
||||
onLongPress_ = std::move(onLongPress);
|
||||
}
|
||||
: onClick_(std::move(onClick)), onLongPress_(std::move(onLongPress)) {}
|
||||
|
||||
bool OnClick(UIView& view, const ClickEvent &event) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user