HomePhabricator

univalue: Avoid std::string copies

Description

univalue: Avoid std::string copies

Summary:

This shouldn't matter too much, unless a really large string is pushed into a json struct, but I think it also clarifies the code.

Backport of core#25714.

Depends on D16285.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D16289

Details

Provenance
MacroFake <falke.marco@gmail.com>Authored on Jul 26 2022, 13:24
FabienCommitted on Jun 6 2024, 09:26
FabienPushed on Jun 6 2024, 09:26
Reviewer
Restricted Project
Differential Revision
D16289: univalue: Avoid std::string copies
Parents
rABC396e95c443fb: Fix issues when calling std::move(const&)
Branches
Unknown
Tags
Unknown