diff options
author | Ed Tanous <edtanous@google.com> | 2022-02-15 22:30:39 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-02-17 19:45:08 +0300 |
commit | f5b191a68700bc58beadaaf9224d4d6f69ccf5dc (patch) | |
tree | 49ebe4043d7019aa014332d5975448ebdcf758e3 /redfish-core/lib/ethernet.hpp | |
parent | f1e1bbf24c296bf69058225a99036ec64a65705d (diff) | |
download | bmcweb-f5b191a68700bc58beadaaf9224d4d6f69ccf5dc.tar.xz |
Prepare for clang-tidy-14
clang-tidy 14 now detects some more stuff that it couldn't before.
These are all pretty reasonable and things that we enforce today.
All changes were made by the robot.
Tested: Code compiles and unit tests pass.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I880d714c97adc38a190472766fb922fbfb30e82a
Diffstat (limited to 'redfish-core/lib/ethernet.hpp')
-rw-r--r-- | redfish-core/lib/ethernet.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/redfish-core/lib/ethernet.hpp b/redfish-core/lib/ethernet.hpp index cc2ee57b42..6770c48482 100644 --- a/redfish-core/lib/ethernet.hpp +++ b/redfish-core/lib/ethernet.hpp @@ -2081,7 +2081,8 @@ inline void requestEthernetInterfacesRoutes(App& app) if (ipv6StaticAddresses) { - nlohmann::json ipv6Static = *ipv6StaticAddresses; + const nlohmann::json& ipv6Static = + *ipv6StaticAddresses; handleIPv6StaticAddressesPatch(ifaceId, ipv6Static, ipv6Data, asyncResp); } |