summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-19 20:49:06 +0200
committerGitHub <noreply@github.com>2018-07-19 20:49:06 +0200
commit427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78 (patch)
treeb3e976f72a82975954ea8d0e90d9a72d0922fee6
parentMerge pull request #711 from lioncash/swap (diff)
parentfilesystem: std::move VirtualDir instance in VfsDirectoryServiceWrapper's constructor (diff)
downloadyuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.tar
yuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.tar.gz
yuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.tar.bz2
yuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.tar.lz
yuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.tar.xz
yuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.tar.zst
yuzu-427fc4ac6bca32f9e1efafb9cdf0144b2e6dbe78.zip
-rw-r--r--src/core/hle/service/filesystem/filesystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp
index ec528ef40..55282f3af 100644
--- a/src/core/hle/service/filesystem/filesystem.cpp
+++ b/src/core/hle/service/filesystem/filesystem.cpp
@@ -2,7 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
-#pragma optimize("", off)
+#include <utility>
#include "common/assert.h"
#include "common/file_util.h"
@@ -25,14 +25,14 @@ constexpr u64 EMULATED_SD_REPORTED_SIZE = 32000000000;
static FileSys::VirtualDir GetDirectoryRelativeWrapped(FileSys::VirtualDir base,
const std::string& dir_name) {
- if (dir_name == "." || dir_name == "" || dir_name == "/" || dir_name == "\\")
+ if (dir_name.empty() || dir_name == "." || dir_name == "/" || dir_name == "\\")
return base;
return base->GetDirectoryRelative(dir_name);
}
VfsDirectoryServiceWrapper::VfsDirectoryServiceWrapper(FileSys::VirtualDir backing_)
- : backing(backing_) {}
+ : backing(std::move(backing_)) {}
std::string VfsDirectoryServiceWrapper::GetName() const {
return backing->GetName();