From 58ea124d23dc3858e5be92431d770ade83606e94 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 23 Oct 2017 12:26:42 +0800 Subject: [PATCH] str_list: str_join() pass param by reference Signed-off-by: Kefu Chai --- src/include/str_list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/str_list.h b/src/include/str_list.h index 8ca07f3d31b..9c782d4adf9 100644 --- a/src/include/str_list.h +++ b/src/include/str_list.h @@ -77,7 +77,7 @@ extern void get_str_set(const std::string& str, * @param [in] sep String used to join each element from **v** * @return empty string if **v** is empty or concatenated string **/ -inline std::string str_join(const std::vector& v, std::string sep) +inline std::string str_join(const std::vector& v, const std::string& sep) { if (v.empty()) return std::string(); -- 2.39.5