Skip to content

Commit

Permalink
ncm: fix destructor availability
Browse files Browse the repository at this point in the history
  • Loading branch information
SciresM committed Sep 19, 2021
1 parent 33ae401 commit dc52a32
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ namespace ams::ncm {
}
public:
HostContentStorageImpl(RegisteredHostContent *registered_content) : registered_content(registered_content), disabled(false) { /* ... */ }
~HostContentStorageImpl();
public:
/* Actual commands. */
virtual Result GeneratePlaceHolderId(sf::Out<PlaceHolderId> out);
Expand Down
10 changes: 7 additions & 3 deletions libstratosphere/source/ncm/ncm_registered_host_content.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
#include <stratosphere.hpp>

namespace ams::ncm {

class RegisteredHostContent::RegisteredPath : public util::IntrusiveListBaseNode<RegisteredPath> {
NON_COPYABLE(RegisteredPath);
NON_MOVEABLE(RegisteredPath);
private:
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 {
Expand All @@ -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);

Expand Down

0 comments on commit dc52a32

Please sign in to comment.