diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-01-26 09:02:22 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-01-26 09:02:36 +0100 |
commit | d4c180ecc9aec5baa6c074f78e4d2c5e28b124ac (patch) | |
tree | 26edec3d7a365b3c1a45350cc86254da7bb9eb40 /src/txorphanage.cpp | |
parent | ab98673f058853e00c310afad57925f54c1ecfae (diff) | |
parent | fab958290b84037fad1d78ffb2bce34d2b0e8c36 (diff) | |
download | bitcoin-d4c180ecc9aec5baa6c074f78e4d2c5e28b124ac.tar.xz |
Merge bitcoin/bitcoin#26960: refactor: Remove c_str from util/check
fab958290b84037fad1d78ffb2bce34d2b0e8c36 refactor: Remove c_str from util/check (MarcoFalke)
Pull request description:
Seems confusing and fragile to require calling code to call `c_str()` when passing a read-only view of a std::string.
Fix that by using std::string_view, which can be constructed from string literals and std::string.
Also, remove the now unused `c_str()` from `src/wallet/bdb.cpp`.
ACKs for top commit:
stickies-v:
ACK fab958290b84037fad1d78ffb2bce34d2b0e8c36
aureleoules:
ACK fab958290b84037fad1d78ffb2bce34d2b0e8c36
theStack:
ACK fab958290b84037fad1d78ffb2bce34d2b0e8c36
Tree-SHA512: ae39812c6bb8e2ef095e1b843774af2718f48404cb848c3e43b16d3c22240557d69d54a13a038a4a9c48b3ba0e4523e1f87abdd60f91486092f50fd43c0e8483
Diffstat (limited to 'src/txorphanage.cpp')
0 files changed, 0 insertions, 0 deletions