Skip to content
Snippets Groups Projects
Commit b73a50ba authored by Adrien Béraud's avatar Adrien Béraud
Browse files

pht: prevent unneeded use of shared_ptr

Prefer a const reference instead of shared_ptr if the shared_ptr
is not used and argument type is not changed in the method.

This allows to prevent useless shared_ptr allocations.

In getRealPrefix, use OpState to track state instead of using many
different shared_ptr.
parent 70ccbe4e
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment