DevPtsFS: Use String::number() in a place where it makes sense.

This commit is contained in:
Andreas Kling 2019-07-22 10:42:34 +02:00
parent 342f7a6b0f
commit a9adf4c95b
Notes: sideshowbarker 2024-07-19 13:05:30 +09:00

View file

@ -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);