diff options
| author | João Barbosa <[email protected]> | 2018-04-13 14:05:55 +0100 |
|---|---|---|
| committer | João Barbosa <[email protected]> | 2018-04-13 14:07:21 +0100 |
| commit | 6ec78f146134be7ee067a25a412d3c927f9ac353 (patch) | |
| tree | acab1c29632640d007f051d052a6ef8fb7658f7c /src/wallet/init.cpp | |
| parent | wallet: Make WalletInitInterface members const (diff) | |
| download | discoin-6ec78f146134be7ee067a25a412d3c927f9ac353.tar.xz discoin-6ec78f146134be7ee067a25a412d3c927f9ac353.zip | |
wallet: Refactor g_wallet_init_interface to const reference
Diffstat (limited to 'src/wallet/init.cpp')
| -rw-r--r-- | src/wallet/init.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp index 72d1fa3ec..2fd9aa1a6 100644 --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -47,8 +47,7 @@ public: void Close() const override; }; -static WalletInit g_wallet_init; -WalletInitInterface* const g_wallet_init_interface = &g_wallet_init; +const WalletInitInterface& g_wallet_init_interface = WalletInit(); std::string WalletInit::GetHelpString(bool showDebug) const { |