diff --git a/orchagent/p4orch/tests/fake_notificationconsumer.cpp b/orchagent/p4orch/tests/fake_notificationconsumer.cpp index d0c88a59fec..cdd4591a2fd 100644 --- a/orchagent/p4orch/tests/fake_notificationconsumer.cpp +++ b/orchagent/p4orch/tests/fake_notificationconsumer.cpp @@ -5,7 +5,7 @@ namespace swss NotificationConsumer::NotificationConsumer(swss::DBConnector *db, const std::string &channel, int pri, size_t popBatchSize) - : Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(NULL), m_channel(channel), + : Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(nullptr), m_channel(channel), m_queue(std::make_unique()) { SWSS_LOG_ENTER(); @@ -13,7 +13,7 @@ NotificationConsumer::NotificationConsumer(swss::DBConnector *db, const std::str NotificationConsumer::NotificationConsumer(swss::DBConnector *db, const std::string &channel, int pri, size_t popBatchSize, NotificationQueuePolicy policy) - : Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(NULL), m_channel(channel), + : Selectable(pri), POP_BATCH_SIZE(popBatchSize), m_db(db), m_subscribe(nullptr), m_channel(channel), m_queue(policy == NotificationQueuePolicy::LruDedup ? std::unique_ptr(std::make_unique(channel)) : std::unique_ptr(std::make_unique()))