cleanup: add constref to parameters in routing_table
routing_table.hpp: Add const reference to string parameters in
constructor.
Change-Id: I29a4a7db17706eb48cffcd7e6b0c2d72191e27f8
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/routing_table.hpp b/routing_table.hpp
index f23b54c..10198d8 100644
--- a/routing_table.hpp
+++ b/routing_table.hpp
@@ -25,8 +25,10 @@
std::string gateway;
// interface for this route
std::string interface;
- Entry(std::string dest, std::string gtw, std::string intf) :
- destination(dest), gateway(gtw), interface(intf)
+ Entry(const std::string& dest, const std::string& gtw,
+ const std::string& intf) :
+ destination(dest),
+ gateway(gtw), interface(intf)
{
}