diff --git a/syncd/SwitchNotifications.cpp b/syncd/SwitchNotifications.cpp index 423265ab2..a39b4ab48 100644 --- a/syncd/SwitchNotifications.cpp +++ b/syncd/SwitchNotifications.cpp @@ -5,7 +5,7 @@ using namespace syncd; SwitchNotifications::SlotBase::SlotBase( - _In_ sai_switch_notifications_t sn): + _In_ const sai_switch_notifications_t& sn): m_handler(nullptr), m_sn(sn) { diff --git a/syncd/SwitchNotifications.h b/syncd/SwitchNotifications.h index 9412ef271..ab38686c4 100644 --- a/syncd/SwitchNotifications.h +++ b/syncd/SwitchNotifications.h @@ -20,7 +20,7 @@ namespace syncd public: SlotBase( - _In_ sai_switch_notifications_t sn); + _In_ const sai_switch_notifications_t& sn); virtual ~SlotBase();