From 38b33903bae2ddd0b5868a9eff8298945f1a4d56 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Sun, 12 Mar 2023 21:45:57 -0700 Subject: [PATCH] openflow: Align Callback usage with signature in CommandLine class --- src/openflow/examples/openflow-switch.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/openflow/examples/openflow-switch.cc b/src/openflow/examples/openflow-switch.cc index 2e29bdd04..a2c21bec9 100644 --- a/src/openflow/examples/openflow-switch.cc +++ b/src/openflow/examples/openflow-switch.cc @@ -51,21 +51,21 @@ bool use_drop = false; ns3::Time timeout = ns3::Seconds(0); bool -SetVerbose(std::string value) +SetVerbose(const std::string& value) { verbose = true; return true; } bool -SetDrop(std::string value) +SetDrop(const std::string& value) { use_drop = true; return true; } bool -SetTimeout(std::string value) +SetTimeout(const std::string& value) { try {