stratosphere: Remove an unneeded constructor

domain_objects is already an array of empty std::shared_ptrs (since
std::shared_ptr has a sane default constructor).
This commit is contained in:
Léo Lam 2018-07-02 13:21:10 +02:00 committed by SciresM
parent 22ae5b861c
commit a28b40866a

View file

@ -14,12 +14,6 @@ class DomainOwner {
private: private:
std::array<std::shared_ptr<IServiceObject>, DOMAIN_ID_MAX> domain_objects; std::array<std::shared_ptr<IServiceObject>, DOMAIN_ID_MAX> domain_objects;
public: public:
DomainOwner() {
for (unsigned int i = 0; i < DOMAIN_ID_MAX; i++) {
this->domain_objects[i].reset();
}
}
/* Shared ptrs should auto delete here. */ /* Shared ptrs should auto delete here. */
virtual ~DomainOwner() = default; virtual ~DomainOwner() = default;