mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Everywhere: Stop using NonnullRefPtrVector
This class had slightly confusing semantics and the added weirdness doesn't seem worth it just so we can say "." instead of "->" when iterating over a vector of NNRPs. This patch replaces NonnullRefPtrVector<T> with Vector<NNRP<T>>.
This commit is contained in:
parent
104be6c8ac
commit
8a48246ed1
168 changed files with 1280 additions and 1280 deletions
|
@ -31,7 +31,7 @@
|
|||
#include <unistd.h>
|
||||
|
||||
DeprecatedString g_system_mode = "graphical";
|
||||
NonnullRefPtrVector<Service> g_services;
|
||||
Vector<NonnullRefPtr<Service>> g_services;
|
||||
|
||||
// NOTE: This handler ensures that the destructor of g_services is called.
|
||||
static void sigterm_handler(int)
|
||||
|
@ -549,8 +549,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
// After we've set them all up, activate them!
|
||||
dbgln("Activating {} services...", g_services.size());
|
||||
for (auto& service : g_services) {
|
||||
if (auto result = service.activate(); result.is_error())
|
||||
dbgln("{}: {}", service.name(), result.release_error());
|
||||
if (auto result = service->activate(); result.is_error())
|
||||
dbgln("{}: {}", service->name(), result.release_error());
|
||||
}
|
||||
|
||||
return event_loop.exec();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue