Skip to content

Commit

Permalink
[syncd] Fix SwitchNotifications to be const reference (#945)
Browse files Browse the repository at this point in the history
To satisfy LGTM alert and for performance reasons to skip making unnecessary copy of struct.
  • Loading branch information
kcudnik authored Sep 25, 2021
1 parent d598dea commit 5863ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syncd/SwitchNotifications.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion syncd/SwitchNotifications.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ namespace syncd
public:

SlotBase(
_In_ sai_switch_notifications_t sn);
_In_ const sai_switch_notifications_t& sn);

virtual ~SlotBase();

Expand Down

0 comments on commit 5863ed3

Please sign in to comment.