mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
SystemServer: Use NonnullRefPtrVector
This commit is contained in:
parent
d74650e80d
commit
d87f875552
1 changed files with 2 additions and 2 deletions
|
@ -123,14 +123,14 @@ int main(int, char**)
|
|||
|
||||
// Read our config and instantiate services.
|
||||
// This takes care of setting up sockets.
|
||||
Vector<RefPtr<Service>> services;
|
||||
NonnullRefPtrVector<Service> services;
|
||||
auto config = Core::ConfigFile::get_for_system("SystemServer");
|
||||
for (auto name : config->groups())
|
||||
services.append(Service::construct(*config, name));
|
||||
|
||||
// After we've set them all up, activate them!
|
||||
for (auto& service : services)
|
||||
service->activate();
|
||||
service.activate();
|
||||
|
||||
// This won't return if we're in test mode.
|
||||
check_for_test_mode();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue