Просмотр исходного кода

fsp_srv: Make IStorage constructor explicit

Prevents implicit conversions.
Lioncash 8 лет назад
Родитель
Сommit
f317080f40
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/hle/service/filesystem/fsp_srv.cpp

+ 1 - 1
src/core/hle/service/filesystem/fsp_srv.cpp

@@ -33,7 +33,7 @@ enum class StorageId : u8 {
 
 
 class IStorage final : public ServiceFramework<IStorage> {
 class IStorage final : public ServiceFramework<IStorage> {
 public:
 public:
-    IStorage(FileSys::VirtualFile backend_)
+    explicit IStorage(FileSys::VirtualFile backend_)
         : ServiceFramework("IStorage"), backend(std::move(backend_)) {
         : ServiceFramework("IStorage"), backend(std::move(backend_)) {
         static const FunctionInfo functions[] = {
         static const FunctionInfo functions[] = {
             {0, &IStorage::Read, "Read"}, {1, nullptr, "Write"},   {2, nullptr, "Flush"},
             {0, &IStorage::Read, "Read"}, {1, nullptr, "Write"},   {2, nullptr, "Flush"},