mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 09:50:36 +00:00
SystemServer: Use NonnullRefPtrVector
This commit is contained in:
parent
d74650e80d
commit
d87f875552
Notes:
sideshowbarker
2024-07-19 06:52:40 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/d87f875552e
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…
Reference in a new issue