bitcoin/src/script
MarcoFalke 9ccaee1d5e
Merge #19004: refactor: Replace const char* to std::string
c57f03ce17 refactor: Replace const char* to std::string (Calvin Kim)

Pull request description:

  Rationale: Addresses #19000
  Some functions should be returning std::string instead of const char*.
  This commit changes that.

  Main benefits/reasoning:

  1.  The functions never return nullptr, so returning a string makes code at call sites easier to review (reviewers don't have to read the source code to verify that a nullptr is never returned)
  2. All call sites convert to string anyway

ACKs for top commit:
  MarcoFalke:
    re-ACK c57f03ce17 (no changes since previous review) 🚃
  Empact:
    Fair enough, Code Review ACK c57f03ce17
  practicalswift:
    ACK c57f03ce17 -- patch looks correct
  hebasto:
    re-ACK c57f03ce17

Tree-SHA512: 9ce99bb38fe399b54844315048204cafce0f27fd8f24cae357fa7ac6f5d8094d57bbf5f5c1f5878a65f2d35e4a3f95d527eb17f49250b690c591c0df86ca84fd
2020-05-27 07:16:10 -04:00
..
bitcoinconsensus.cpp Drop unused GetType() from CSizeComputer 2018-09-11 00:58:05 -04:00
bitcoinconsensus.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
descriptor.cpp refactor: Remove override for final overriders 2020-05-08 10:37:05 +03:00
descriptor.h Add IsSingleType to Descriptors 2020-04-23 13:59:48 -04:00
interpreter.cpp scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
interpreter.h [REFACTOR] Initialize PrecomputedTransactionData in CheckInputScripts 2020-04-11 21:32:45 -04:00
keyorigin.h Convert everything except wallet/qt to new serialization 2020-03-30 16:10:30 -07:00
script_error.cpp refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
script_error.h refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
script.cpp refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
script.h Merge #19004: refactor: Replace const char* to std::string 2020-05-27 07:16:10 -04:00
sigcache.cpp scripted-diff: Bump copyright of files changed in 2019 2019-12-30 10:42:20 +13:00
sigcache.h Update copyright headers to 2018 2018-07-27 07:15:02 -04:00
sign.cpp scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
sign.h scripted-diff: Bump copyright headers 2020-04-16 13:33:09 -04:00
signingprovider.cpp Move WatchOnly stuff from SigningProvider to CWallet 2019-07-09 16:20:18 -04:00
signingprovider.h wallet: Improve LegacyScriptPubKeyMan::CanProvide script recognition 2020-02-12 11:48:30 -05:00
standard.cpp refactor: Replace const char* to std::string 2020-05-22 01:40:31 +09:00
standard.h Merge #19004: refactor: Replace const char* to std::string 2020-05-27 07:16:10 -04:00