Merge "Replace auto -> const auto&/auto&&"
diff --git a/linker/linker.cpp b/linker/linker.cpp
index 6b9eed9..487829b 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -331,7 +331,7 @@
   std::string origin = dirname(get_realpath());
   // FIXME: add $LIB and $PLATFORM.
   std::pair<std::string, std::string> substs[] = {{"ORIGIN", origin}};
-  for (std::string& s : dt_runpath_) {
+  for (auto&& s : dt_runpath_) {
     size_t pos = 0;
     while (pos < s.size()) {
       pos = s.find("$", pos);
@@ -1169,7 +1169,7 @@
 }
 
 ZipArchiveCache::~ZipArchiveCache() {
-  for (auto it : cache_) {
+  for (const auto& it : cache_) {
     CloseArchive(it.second);
   }
 }