From eee9fe4777d1483ed5b0dad81df2d60f8ec826aa Mon Sep 17 00:00:00 2001 From: Yi-Yo Chiang Date: Fri, 12 Nov 2021 21:45:24 +0800 Subject: [PATCH] Remove std::move() around const variable because const variable cannot be moved. Bug: 204056804 Test: Presubmit Change-Id: Iec13deb0f306976cfaee88da57a17f857ac35c8a --- fs_mgr/fs_mgr_fstab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs_mgr/fs_mgr_fstab.cpp b/fs_mgr/fs_mgr_fstab.cpp index 159be6772..e0d28eb13 100644 --- a/fs_mgr/fs_mgr_fstab.cpp +++ b/fs_mgr/fs_mgr_fstab.cpp @@ -138,7 +138,7 @@ void ParseMountFlags(const std::string& flags, FstabEntry* entry) { entry->reserved_size = size_in_4k_blocks << 12; } } else if (StartsWith(flag, "lowerdir=")) { - entry->lowerdir = std::move(arg); + entry->lowerdir = arg; } } }