summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/vfs_real.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-21 04:23:56 +0200
committerLioncash <mathew1800@gmail.com>2018-07-21 04:23:58 +0200
commitd36e327ba62fc853d75c413fd30ba38385dfa210 (patch)
tree9c1c715eebdeda015d94722cea5a65a3d2192d54 /src/core/file_sys/vfs_real.cpp
parentpartition_filesystem, vfs_real: Use std::distance() instead of subtraction (diff)
downloadyuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.tar
yuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.tar.gz
yuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.tar.bz2
yuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.tar.lz
yuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.tar.xz
yuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.tar.zst
yuzu-d36e327ba62fc853d75c413fd30ba38385dfa210.zip
Diffstat (limited to 'src/core/file_sys/vfs_real.cpp')
-rw-r--r--src/core/file_sys/vfs_real.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/file_sys/vfs_real.cpp b/src/core/file_sys/vfs_real.cpp
index fa0df1bbe..305d44a93 100644
--- a/src/core/file_sys/vfs_real.cpp
+++ b/src/core/file_sys/vfs_real.cpp
@@ -3,6 +3,7 @@
// Refer to the license.txt file included.
#include <iterator>
+#include <utility>
#include "common/common_paths.h"
#include "common/logging/log.h"
@@ -173,7 +174,7 @@ bool RealVfsDirectory::ReplaceFileWithSubdirectory(VirtualFile file, VirtualDir
files[offset] = files.back();
files.pop_back();
- subdirectories.emplace_back(dir);
+ subdirectories.emplace_back(std::move(dir));
return true;
}