mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:57:35 +00:00
DevPtsFS: Use String::number() in a place where it makes sense.
This commit is contained in:
parent
342f7a6b0f
commit
a9adf4c95b
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)
|
NonnullRefPtr<SynthFSInode> DevPtsFS::create_slave_pty_device_file(unsigned index)
|
||||||
{
|
{
|
||||||
auto file = adopt(*new SynthFSInode(*this, generate_inode_index()));
|
auto file = adopt(*new SynthFSInode(*this, generate_inode_index()));
|
||||||
|
file->m_name = String::number(index);
|
||||||
StringBuilder builder;
|
|
||||||
builder.appendf("%u", index);
|
|
||||||
file->m_name = builder.to_string();
|
|
||||||
|
|
||||||
auto* device = VFS::the().get_device(11, index);
|
auto* device = VFS::the().get_device(11, index);
|
||||||
ASSERT(device);
|
ASSERT(device);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue