mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
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...
This commit is contained in:
parent
e3469391d3
commit
071d72b494
2 changed files with 6 additions and 6 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue