From 5078a4c040c9fdce1c4d85a11e172bd023033c16 Mon Sep 17 00:00:00 2001 From: zero-cyc Date: Wed, 16 Feb 2022 20:35:56 +0800 Subject: [PATCH] chenlien@huawei.com Signed-off-by: zero-cyc Change-Id: I55b1910c31b80eeb15592c55a5c5388e59d51dbc --- frameworks/ans/test/moduletest/ans_fw_module_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frameworks/ans/test/moduletest/ans_fw_module_test.cpp b/frameworks/ans/test/moduletest/ans_fw_module_test.cpp index b91b520c5..ecbcac893 100644 --- a/frameworks/ans/test/moduletest/ans_fw_module_test.cpp +++ b/frameworks/ans/test/moduletest/ans_fw_module_test.cpp @@ -92,7 +92,7 @@ public: } protected: - SubscriberEvent(SubscriberEventType type) : type_(type) + explicit SubscriberEvent(SubscriberEventType type) : type_(type) {} SubscriberEventType type_; @@ -127,7 +127,7 @@ public: class OnUpdatedEvent : public SubscriberEvent { public: - OnUpdatedEvent(const std::shared_ptr &sortingMap) + explicit OnUpdatedEvent(const std::shared_ptr &sortingMap) : SubscriberEvent(SubscriberEventType::ON_UPDATE), sortingMap_(sortingMap) {} @@ -199,7 +199,7 @@ private: class OnOnCanceledWithSortingMapAndDeleteReasonEvent : public SubscriberEvent { public: - OnOnCanceledWithSortingMapAndDeleteReasonEvent(const std::shared_ptr &request, + explicit OnOnCanceledWithSortingMapAndDeleteReasonEvent(const std::shared_ptr &request, const std::shared_ptr &sortingMap, int deleteReason) : SubscriberEvent(SubscriberEventType::ON_CANCELED_WITH_SORTINGMAP_AND_DELETEREASON), request_(request), @@ -249,7 +249,7 @@ private: class OnConsumedWithSortingMapEvent : public SubscriberEvent { public: - OnConsumedWithSortingMapEvent( + explicit OnConsumedWithSortingMapEvent( const std::shared_ptr &request, const std::shared_ptr &sortingMap) : SubscriberEvent(SubscriberEventType::ON_CONSUMED_WITH_SORTINGMAP), request_(request), sortingMap_(sortingMap) { -- Gitee