diff options
| author | Wladimir J. van der Laan <[email protected]> | 2018-08-25 20:20:30 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2018-08-25 21:13:46 +0200 |
| commit | 6f5372a1714383bb5e47a5ba89dc4d93020a2943 (patch) | |
| tree | 600e78c6450312be5ea778169399a98eba3fdeb9 /src/bitcoin-cli.cpp | |
| parent | Merge #13946: p2p: Clarify control flow in ProcessMessage (diff) | |
| parent | util: Replace boost::signals2 with std::function (diff) | |
| download | discoin-6f5372a1714383bb5e47a5ba89dc4d93020a2943.tar.xz discoin-6f5372a1714383bb5e47a5ba89dc4d93020a2943.zip | |
Merge #13961: util: Replace boost::signals2 with std::function
ddddce0e46e73d4ca369f2ce9696231cc579e1f9 util: Replace boost::signals2 with std::function (MarcoFalke)
Pull request description:
This removes the `#include <boost/signals2/signal.hpp>` from `util.h` (hopefully speeding up the build time and reducing the memory usage further after #13634)
The whole translation interface is replaced by a function `G_TRANSLATION_FUN` that is set to nullptr in units that don't need translation. (Thus only set in the gui)
Tree-SHA512: 087c717358bbed8bdb409463e225239d667f1ced381abb10e7cd31a41dcdd2cebe20b43c2ee86f0f8e55d53301f75e963f07421a99a7ff4c0cad2c6a375c5ab1
Diffstat (limited to 'src/bitcoin-cli.cpp')
| -rw-r--r-- | src/bitcoin-cli.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index db713f58d..c9414e67c 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -24,6 +24,8 @@ #include <univalue.h> +const std::function<std::string(const char*)> G_TRANSLATION_FUN = nullptr; + static const char DEFAULT_RPCCONNECT[] = "127.0.0.1"; static const int DEFAULT_HTTP_CLIENT_TIMEOUT=900; static const bool DEFAULT_NAMED=false; |