diff options
author | Abseil Team <absl-team@google.com> | 2024-03-24 12:04:33 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2024-03-24 12:05:32 -0700 |
commit | c2cf2d38d2ec11eb68b4e89a1c9051b055e91689 (patch) | |
tree | a3f97718c4e60c44889aec61a671e9976a408dd7 | |
parent | 7335a36d0b5c1c597566f9aa3f458a5b6817c3b4 (diff) |
LSC: Move expensive variables on their last use to avoid copies.
PiperOrigin-RevId: 618650101
Change-Id: I6cff17a9db0dc45ad3b1f833df6ea3d7d04a7449
-rw-r--r-- | absl/strings/str_split.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/strings/str_split.h b/absl/strings/str_split.h index 49bff7b2..ba176fca 100644 --- a/absl/strings/str_split.h +++ b/absl/strings/str_split.h @@ -544,7 +544,7 @@ StrSplit(strings_internal::ConvertibleToStringView text, Delimiter d, typename strings_internal::SelectDelimiter<Delimiter>::type; return strings_internal::Splitter<DelimiterType, Predicate, absl::string_view>( - text.value(), DelimiterType(d), std::move(p)); + text.value(), DelimiterType(std::move(d)), std::move(p)); } template <typename Delimiter, typename Predicate, typename StringType, |