summaryrefslogtreecommitdiff
path: root/Userland/DevTools/Profiler/Profile.cpp
diff options
context:
space:
mode:
authorHendiadyoin1 <leon2002.la@gmail.com>2021-12-22 16:51:04 +0100
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-12-23 12:45:36 -0800
commit071d72b49433be1d8d400d0c70b0aae680096638 (patch)
treecadf59d2bbdfd8fd34317a0dc9c5d0f8cd0006a5 /Userland/DevTools/Profiler/Profile.cpp
parente3469391d3eda3e335189ba021edddd76ec0fd59 (diff)
downloadserenity-071d72b49433be1d8d400d0c70b0aae680096638.zip
Profiler: Always use FlyString const&'s in ProfileNode construction
No need to copy and move them around, just to pass them as a `String const&` to the constructor. We still end up copying it to a normal String in the end though...
Diffstat (limited to 'Userland/DevTools/Profiler/Profile.cpp')
-rw-r--r--Userland/DevTools/Profiler/Profile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/Profiler/Profile.cpp b/Userland/DevTools/Profiler/Profile.cpp
index 3664720b86..f5acbeb8f7 100644
--- a/Userland/DevTools/Profiler/Profile.cpp
+++ b/Userland/DevTools/Profiler/Profile.cpp
@@ -563,7 +563,7 @@ ProfileNode::ProfileNode(Process const& process)
{
}
-ProfileNode::ProfileNode(Process const& process, const String& object_name, String symbol, FlatPtr address, u32 offset, u64 timestamp, pid_t pid)
+ProfileNode::ProfileNode(Process const& process, FlyString const& object_name, String symbol, FlatPtr address, u32 offset, u64 timestamp, pid_t pid)
: m_process(process)
, m_symbol(move(symbol))
, m_pid(pid)