[hac::ServiceAccessControl] replaced addService() with setServiceList().

This commit is contained in:
jakcron 2018-10-27 14:46:59 +08:00
parent e3e045ad0a
commit 687185ee14
2 changed files with 3 additions and 3 deletions

View file

@ -28,7 +28,7 @@ namespace hac
// variables
void clear();
const fnd::List<ServiceAccessControlEntry>& getServiceList() const;
void addService(const ServiceAccessControlEntry& service);
void setServiceList(const fnd::List<ServiceAccessControlEntry>& list);
private:
const std::string kModuleName = "SERVICE_ACCESS_CONTROL";

View file

@ -73,7 +73,7 @@ const fnd::List<nn::hac::ServiceAccessControlEntry>& nn::hac::ServiceAccessContr
return mServices;
}
void nn::hac::ServiceAccessControl::addService(const ServiceAccessControlEntry& service)
void nn::hac::ServiceAccessControl::setServiceList(const fnd::List<ServiceAccessControlEntry>& list)
{
mServices.addElement(service);
mServices = list;
}