diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-07-22 10:42:34 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-07-22 10:42:34 +0200 |
commit | a9adf4c95b8ee3ba892878daec81d6cfc809be75 (patch) | |
tree | 8f6c68fccc09cb4c6d2902f5f8c02412289a2371 | |
parent | 342f7a6b0fe625d9d9920bd80659dd8f3e693578 (diff) | |
download | serenity-a9adf4c95b8ee3ba892878daec81d6cfc809be75.zip |
DevPtsFS: Use String::number() in a place where it makes sense.
-rw-r--r-- | Kernel/FileSystem/DevPtsFS.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Kernel/FileSystem/DevPtsFS.cpp b/Kernel/FileSystem/DevPtsFS.cpp index d376192511..73c0282651 100644 --- a/Kernel/FileSystem/DevPtsFS.cpp +++ b/Kernel/FileSystem/DevPtsFS.cpp @@ -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); |