From 8940f2da7fec4b4e375777c861e65ff04465f255 Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Thu, 8 Dec 2022 14:50:31 +0100 Subject: LibCore: Use `Core::Stream` for `ProcessStatisticsReader` --- Userland/Libraries/LibGUI/RunningProcessesModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Userland/Libraries/LibGUI') diff --git a/Userland/Libraries/LibGUI/RunningProcessesModel.cpp b/Userland/Libraries/LibGUI/RunningProcessesModel.cpp index f4bc37124f..d0af1001a0 100644 --- a/Userland/Libraries/LibGUI/RunningProcessesModel.cpp +++ b/Userland/Libraries/LibGUI/RunningProcessesModel.cpp @@ -21,7 +21,7 @@ void RunningProcessesModel::update() m_processes.clear(); auto all_processes = Core::ProcessStatisticsReader::get_all(); - if (all_processes.has_value()) { + if (!all_processes.is_error()) { for (auto& it : all_processes.value().processes) { Process process; process.pid = it.pid; -- cgit v1.2.3