mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
DevPtsFS: Use String::number() in a place where it makes sense.
This commit is contained in:
parent
342f7a6b0f
commit
a9adf4c95b
Notes:
sideshowbarker
2024-07-19 13:05:30 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a9adf4c95b8
1 changed files with 1 additions and 4 deletions
|
@ -39,10 +39,7 @@ const char* DevPtsFS::class_name() const
|
|||
NonnullRefPtr<SynthFSInode> DevPtsFS::create_slave_pty_device_file(unsigned index)
|
||||
{
|
||||
auto file = adopt(*new SynthFSInode(*this, generate_inode_index()));
|
||||
|
||||
StringBuilder builder;
|
||||
builder.appendf("%u", index);
|
||||
file->m_name = builder.to_string();
|
||||
file->m_name = String::number(index);
|
||||
|
||||
auto* device = VFS::the().get_device(11, index);
|
||||
ASSERT(device);
|
||||
|
|
Loading…
Reference in a new issue