aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <[email protected]>2018-04-13 14:05:55 +0100
committerJoão Barbosa <[email protected]>2018-04-13 14:07:21 +0100
commit6ec78f146134be7ee067a25a412d3c927f9ac353 (patch)
treeacab1c29632640d007f051d052a6ef8fb7658f7c /src/wallet/init.cpp
parentwallet: Make WalletInitInterface members const (diff)
downloaddiscoin-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.cpp3
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
{