mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:25:08 +00:00
LibCore: Convert CFile to ObjectPtr
This commit is contained in:
parent
31b38ed88f
commit
8d550c174e
30 changed files with 135 additions and 134 deletions
|
@ -28,11 +28,11 @@ void ProcessStacksWidget::set_pid(pid_t pid)
|
|||
|
||||
void ProcessStacksWidget::refresh()
|
||||
{
|
||||
CFile file(String::format("/proc/%d/stack", m_pid));
|
||||
if (!file.open(CIODevice::ReadOnly)) {
|
||||
m_stacks_editor->set_text(String::format("Unable to open %s", file.filename().characters()));
|
||||
auto file = CFile::construct(String::format("/proc/%d/stack", m_pid));
|
||||
if (!file->open(CIODevice::ReadOnly)) {
|
||||
m_stacks_editor->set_text(String::format("Unable to open %s", file->filename().characters()));
|
||||
return;
|
||||
}
|
||||
|
||||
m_stacks_editor->set_text(file.read_all());
|
||||
m_stacks_editor->set_text(file->read_all());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue