diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-11 21:05:35 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-12 16:09:09 +0200 |
commit | a4560313ebe1cd328b98d9cc76c6eb3147aef1b4 (patch) | |
tree | f63d6bee702d8006fee9298ee2353c05ba7f17ae | |
parent | aa1f7060afc4a3840df264d10dc09b3f77a373b6 (diff) | |
download | serenity-a4560313ebe1cd328b98d9cc76c6eb3147aef1b4.zip |
Kernel: Replace all usages of String::number with KString::number
-rw-r--r-- | Kernel/Bus/USB/SysFSUSB.cpp | 2 | ||||
-rw-r--r-- | Kernel/ProcessSpecificExposed.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/Bus/USB/SysFSUSB.cpp b/Kernel/Bus/USB/SysFSUSB.cpp index f6faabed7c..0ae6a5fdb3 100644 --- a/Kernel/Bus/USB/SysFSUSB.cpp +++ b/Kernel/Bus/USB/SysFSUSB.cpp @@ -170,7 +170,7 @@ UNMAP_AFTER_INIT void SysFSUSBBusDirectory::initialize() ErrorOr<NonnullRefPtr<SysFSUSBDeviceInformation>> SysFSUSBDeviceInformation::create(USB::Device& device) { - auto device_name = TRY(KString::try_create(String::number(device.address()))); + auto device_name = TRY(KString::number(device.address())); return adopt_nonnull_ref_or_enomem(new (nothrow) SysFSUSBDeviceInformation(move(device_name), device)); } diff --git a/Kernel/ProcessSpecificExposed.cpp b/Kernel/ProcessSpecificExposed.cpp index d371dcb09b..0a80c9ca3d 100644 --- a/Kernel/ProcessSpecificExposed.cpp +++ b/Kernel/ProcessSpecificExposed.cpp @@ -51,7 +51,8 @@ ErrorOr<void> Process::traverse_stacks_directory(FileSystemID fsid, Function<Err for (auto const& thread : list) { int tid = thread.tid().value(); InodeIdentifier identifier = { fsid, SegmentedProcFSIndex::build_segmented_index_for_thread_stack(pid(), thread.tid()) }; - TRY(callback({ String::number(tid), identifier, 0 })); + auto name = TRY(KString::number(tid)); + TRY(callback({ name->view(), identifier, 0 })); } return {}; }); |