aboutsummaryrefslogtreecommitdiff
path: root/src/core/file_sys/bis_factory.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-16 11:21:13 -0400
committerGitHub <noreply@github.com>2018-10-16 11:21:13 -0400
commit59c1ca8b0c0051a63d57ccb433a96909acf8000c (patch)
tree2df1a3b0722373a00173fae49df3be3c0445d92d /src/core/file_sys/bis_factory.h
parentd6e390bc5c944b8f2ce96b6d79533d60af172918 (diff)
parent39ae73b356a253036283b114855f8c5ddbb20f49 (diff)
Merge pull request #1508 from lioncash/unique-reg
file_sys/registered_cache: Use unique_ptr and regular pointers instead of shared_ptrs where applicable
Diffstat (limited to 'src/core/file_sys/bis_factory.h')
-rw-r--r--src/core/file_sys/bis_factory.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/file_sys/bis_factory.h b/src/core/file_sys/bis_factory.h
index c352e0925..364d309bd 100644
--- a/src/core/file_sys/bis_factory.h
+++ b/src/core/file_sys/bis_factory.h
@@ -20,8 +20,8 @@ public:
explicit BISFactory(VirtualDir nand_root, VirtualDir load_root);
~BISFactory();
- std::shared_ptr<RegisteredCache> GetSystemNANDContents() const;
- std::shared_ptr<RegisteredCache> GetUserNANDContents() const;
+ RegisteredCache* GetSystemNANDContents() const;
+ RegisteredCache* GetUserNANDContents() const;
VirtualDir GetModificationLoadRoot(u64 title_id) const;
@@ -29,8 +29,8 @@ private:
VirtualDir nand_root;
VirtualDir load_root;
- std::shared_ptr<RegisteredCache> sysnand_cache;
- std::shared_ptr<RegisteredCache> usrnand_cache;
+ std::unique_ptr<RegisteredCache> sysnand_cache;
+ std::unique_ptr<RegisteredCache> usrnand_cache;
};
} // namespace FileSys