mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 07:18:22 -04:00
ams: std::optional -> util::optional
This commit is contained in:
parent
9df13781c2
commit
a7c14e03b9
59 changed files with 950 additions and 147 deletions
|
@ -38,8 +38,8 @@ namespace ams::capsrv::server {
|
|||
|
||||
/* Destroy the server. */
|
||||
os::FinalizeEvent(std::addressof(this->idle_event));
|
||||
this->server_manager_holder = std::nullopt;
|
||||
this->service_holder = std::nullopt;
|
||||
this->server_manager_holder = util::nullopt;
|
||||
this->service_holder = util::nullopt;
|
||||
}
|
||||
|
||||
void DecoderControlServerManager::StartServer() {
|
||||
|
|
|
@ -31,8 +31,8 @@ namespace ams::capsrv::server {
|
|||
using ServerOptions = sf::hipc::DefaultServerManagerOptions;
|
||||
using ServerManager = sf::hipc::ServerManager<NumServers, ServerOptions, MaxSessions>;
|
||||
private:
|
||||
std::optional<ServiceHolderType> service_holder;
|
||||
std::optional<ServerManager> server_manager_holder;
|
||||
util::optional<ServiceHolderType> service_holder;
|
||||
util::optional<ServerManager> server_manager_holder;
|
||||
os::EventType idle_event;
|
||||
public:
|
||||
constexpr DecoderControlServerManager() : service_holder(), server_manager_holder(), idle_event{} { /* ... */ }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue