From a9adf4c95b8ee3ba892878daec81d6cfc809be75 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 22 Jul 2019 10:42:34 +0200 Subject: DevPtsFS: Use String::number() in a place where it makes sense. --- Kernel/FileSystem/DevPtsFS.cpp | 5 +---- 1 file changed, 1 insertion(+), 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 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); -- cgit v1.2.3