summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2018-10-14 14:26:35 -0700
committerPatrick Venture <venture@google.com>2018-10-14 14:27:57 -0700
commit3c4a23e7764c7785d18cb30340a6d185022a797a (patch)
tree4f3598e14683a3813ec794b1ba7a00c222ae0c81
parentbd0904b1e92a61d98b49fa9a20765b51b2a62348 (diff)
downloadphosphor-gpio-monitor-3c4a23e7764c7785d18cb30340a6d185022a797a.zip
phosphor-gpio-monitor-3c4a23e7764c7785d18cb30340a6d185022a797a.tar.gz
cleanup: use const reference passing string
[presence/main.cpp:21]: (performance) Function parameter 'driverString' should be passed by const reference. Change-Id: I024e1622b03a3f2ac3487051bdd8f7e3b403639d Signed-off-by: Patrick Venture <venture@google.com>
-rw-r--r--presence/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/presence/main.cpp b/presence/main.cpp
index 0d25081..1eaa18b 100644
--- a/presence/main.cpp
+++ b/presence/main.cpp
@@ -18,7 +18,7 @@ using namespace phosphor::gpio::presence;
*
* @return int - 0 if successful, < 0 else
*/
-static int getDrivers(const std::string driverString,
+static int getDrivers(const std::string& driverString,
std::vector<Driver>& drivers)
{
std::istringstream stream{driverString};
OpenPOWER on IntegriCloud