Browse Source

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

Andreas Kling 6 years ago
parent
commit
a9adf4c95b
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Kernel/FileSystem/DevPtsFS.cpp

+ 1 - 4
Kernel/FileSystem/DevPtsFS.cpp

@@ -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()));
-
-    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);
     auto* device = VFS::the().get_device(11, index);
     ASSERT(device);
     ASSERT(device);