提交 3db59ab1 编写于 作者: O openharmony_ci 提交者: Gitee

!145 修复codex告警

Merge pull request !145 from JayLeeHW/master
......@@ -15,7 +15,7 @@
#include "ui_test_view_bitmap.h"
#include <cstring>
#include "securec.h"
#include "common/screen.h"
#include "components/ui_label_button.h"
......@@ -26,7 +26,7 @@ class ViewBitmapListener : public UIView::OnClickListener {
public:
ViewBitmapListener(UIViewGroup* container, UIImageView* img) : container_(container), img_(img)
{
memset(&info_, 0, sizeof(ImageInfo));
memset_s(&info_, sizeof(ImageInfo), 0, sizeof(ImageInfo));
if ((img != nullptr) && (container != nullptr)) {
container->Add(img);
img->SetVisible(false);
......@@ -64,7 +64,7 @@ class ScreenBitmapListener : public UIView::OnClickListener {
public:
ScreenBitmapListener(UIViewGroup* container, UIImageView* img) : container_(container), img_(img)
{
memset(&info_, 0, sizeof(ImageInfo));
memset_s(&info_, sizeof(ImageInfo), 0, sizeof(ImageInfo));
if ((img != nullptr) && (container != nullptr)) {
container->Add(img);
img->SetVisible(false);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册