ncm: fix destructor availability

This commit is contained in:
Michael Scire
2021-09-19 11:00:57 -07:00
parent 3dc51e164f
commit 155f158197
2 changed files with 7 additions and 4 deletions

View File

@@ -16,7 +16,7 @@
#include <stratosphere.hpp>
namespace ams::ncm {
class RegisteredHostContent::RegisteredPath : public util::IntrusiveListBaseNode<RegisteredPath> {
NON_COPYABLE(RegisteredPath);
NON_MOVEABLE(RegisteredPath);
@@ -24,8 +24,8 @@ namespace ams::ncm {
ContentId content_id;
Path path;
public:
RegisteredPath(const ncm::ContentId &content_id, const Path &p) : content_id(content_id), path(p) {
/* ... */
RegisteredPath(const ncm::ContentId &content_id, const Path &p) : content_id(content_id), path(p) {
/* ... */
}
ncm::ContentId GetContentId() const {
@@ -41,6 +41,10 @@ namespace ams::ncm {
}
};
RegisteredHostContent::~RegisteredHostContent() {
/* ... */
}
Result RegisteredHostContent::RegisterPath(const ncm::ContentId &content_id, const ncm::Path &path) {
std::scoped_lock lk(this->mutex);