diff options
author | Ratan Gupta <ratagupt@in.ibm.com> | 2017-08-03 13:26:19 +0530 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-08-13 11:31:58 +0000 |
commit | 6a387c14431370364dd733a45fed5b52238a56a6 (patch) | |
tree | 1492cf63b203ef451f2d8984f3bd748ddf3a25b6 /ethernet_interface.cpp | |
parent | e578d56af4de7a046cf054d0961c56ed5a904129 (diff) | |
download | phosphor-networkd-6a387c14431370364dd733a45fed5b52238a56a6.tar.gz phosphor-networkd-6a387c14431370364dd733a45fed5b52238a56a6.zip |
Avoid copying of object
Change-Id: I1e89863344bf6d93b98793c085ea6755f046749f
Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
Diffstat (limited to 'ethernet_interface.cpp')
-rw-r--r-- | ethernet_interface.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethernet_interface.cpp b/ethernet_interface.cpp index 3070670..14ccc6c 100644 --- a/ethernet_interface.cpp +++ b/ethernet_interface.cpp @@ -57,7 +57,7 @@ void EthernetInterface::createIPAddressObjects() IP::Protocol addressType = IP::Protocol::IPv4; IP::AddressOrigin origin = IP::AddressOrigin::Static; route::Table routingTable; - for (auto addr : addrs) + for (auto& addr : addrs) { if (addr.addrType == AF_INET6) { |