1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 16:05:07 +00:00

Kernel: Remove redundant (K)String::characters() calls

This commit is contained in:
Daniel Bertalan 2021-12-30 13:43:56 +01:00 committed by Andreas Kling
parent 1d2f78682b
commit 2175c689ef
3 changed files with 3 additions and 3 deletions

View file

@ -372,7 +372,7 @@ private:
result = pseudo_path_or_error.release_error();
return IterationDecision::Break;
}
fs_object.add("source", pseudo_path_or_error.value()->characters());
fs_object.add("source", pseudo_path_or_error.value()->view());
} else {
fs_object.add("source", "none");
}

View file

@ -181,7 +181,7 @@ UNMAP_AFTER_INIT NE2000NetworkAdapter::NE2000NetworkAdapter(PCI::Address address
reset();
set_mac_address(m_mac_address);
dmesgln("NE2000: MAC address: {}", m_mac_address.to_string().characters());
dmesgln("NE2000: MAC address: {}", m_mac_address.to_string());
enable_irq();
}

View file

@ -286,7 +286,7 @@ ErrorOr<void> Process::procfs_get_tty_link(KBufferBuilder& builder) const
{
if (m_tty.is_null())
return Error::from_errno(ENOENT);
return builder.append(m_tty->tty_name().characters());
return builder.append(m_tty->tty_name().view());
}
}