Skip to content

Commit 5863ed3

Browse files
authored
[syncd] Fix SwitchNotifications to be const reference (#945)
To satisfy LGTM alert and for performance reasons to skip making unnecessary copy of struct.
1 parent d598dea commit 5863ed3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syncd/SwitchNotifications.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using namespace syncd;
66

77
SwitchNotifications::SlotBase::SlotBase(
8-
_In_ sai_switch_notifications_t sn):
8+
_In_ const sai_switch_notifications_t& sn):
99
m_handler(nullptr),
1010
m_sn(sn)
1111
{

syncd/SwitchNotifications.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace syncd
2020
public:
2121

2222
SlotBase(
23-
_In_ sai_switch_notifications_t sn);
23+
_In_ const sai_switch_notifications_t& sn);
2424

2525
virtual ~SlotBase();
2626

0 commit comments

Comments
 (0)