diff options
| author | 2024-05-08 15:34:17 +0000 | |
|---|---|---|
| committer | 2024-05-15 10:18:49 +0000 | |
| commit | 10ba643ea94b84c409cd4e44c3b8c66861f9b873 (patch) | |
| tree | c1a45ef2580d5e6469eff9a7bc9fbb0776e63a63 | |
| parent | 080f7b456e6bb62fbe2db6a4d871a31144f488f5 (diff) | |
Fix performance-unnecessary-copy-initialization clang-tidy issues
Bug: 264654008
Test: m tidy-art
Change-Id: I23725646b24dccb5568ad4fb52ae35d36416c592
| -rw-r--r-- | libartbase/base/unix_file/fd_file_test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libartbase/base/unix_file/fd_file_test.cc b/libartbase/base/unix_file/fd_file_test.cc index 0f56f7b03f..d5c3056393 100644 --- a/libartbase/base/unix_file/fd_file_test.cc +++ b/libartbase/base/unix_file/fd_file_test.cc @@ -227,8 +227,8 @@ TEST_F(FdFileTest, Rename) { // Move the file via a rename. art::ScratchFile dest; - std::string new_filename = dest.GetFilename(); - std::string old_filename = src->GetFilename(); + const std::string& new_filename = dest.GetFilename(); + const std::string& old_filename = src->GetFilename(); ASSERT_TRUE(src->GetFile()->Rename(new_filename)); // Confirm the FdFile path has correctly updated. |