QDoc: Actually move link and description into the link map


Node::setLink() takes its link and description as const references
and applies std::move to both before filing them into the link map.
Moving from a const reference is a silent copy: the code reads as a
transfer of ownership that never happens, and static analysis flags
the parameters as returned in a moved-from state.

The function now takes both strings by value and genuinely moves
them into the map. Callers passing temporaries gain a real move;
callers passing lvalues copy exactly as before, at the call
boundary, where the cost is visible.

Coverity-Id: 909806
Coverity-Id: 909821
Pick-to: 6.12
Change-Id: I2e2c4fbf6fcc46db27766bef672975448d7dae8d
Reviewed-by: David Boddie <david.boddie@qt.io>
commitb5cb510818a0f4e5c561aaffc44a6ca0b131fa13
parent30d8099b5456eceb79bb04a89aa267f988444230
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 5 Aug 2026 11:53:29 +0000