mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 03:58:20 +00:00
Add some additional std::moves reported by Coverity
This commit is contained in:
parent
2ce26f1be0
commit
205c72d26f
19 changed files with 27 additions and 26 deletions
|
@ -592,7 +592,7 @@ std::vector<T> split(T s, const T& delim) {
|
|||
*/
|
||||
template<typename T, typename U = typename T::value_type*>
|
||||
std::vector<T> split(T s, U delim) {
|
||||
return split(s, T{delim});
|
||||
return split(std::move(s), std::move(T{delim}));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue