From 8508409735273be11089c6dd17c0d16b9fcef966 Mon Sep 17 00:00:00 2001 From: fangjinliang Date: Tue, 5 Jul 2022 09:11:58 +0800 Subject: [PATCH] code check Signed-off-by: fangjinliang --- services/ans/include/event_report.h | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/services/ans/include/event_report.h b/services/ans/include/event_report.h index 119381680..cae2668f2 100644 --- a/services/ans/include/event_report.h +++ b/services/ans/include/event_report.h @@ -43,18 +43,16 @@ const std::string REMOVE = "REMOVE"; } // namespace struct EventInfo { - int32_t notificationId; - int32_t contentType; - int32_t userId; - int32_t pid; - int32_t uid; - int32_t slotType; - int32_t errCode; - bool enable; + int32_t notificationId = 0; + int32_t contentType = 0; + int32_t userId = -1; + int32_t pid = 0; + int32_t uid = 0; + int32_t slotType = 0; + int32_t errCode = 0; + bool enable = false; std::string bundleName; std::string notificationLabel; - - EventInfo() : userId(-1), pid(0), uid(0), errCode(0), enable(false) {} }; class EventReport { -- Gitee