aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-04-13 14:05:55 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2018-04-13 14:07:21 +0100
commit6ec78f146134be7ee067a25a412d3c927f9ac353 (patch)
treeacab1c29632640d007f051d052a6ef8fb7658f7c /src/wallet
parent1936125671fbdb3411fcdf0d09fbd7ced32272e6 (diff)
wallet: Refactor g_wallet_init_interface to const reference
Diffstat (limited to 'src/wallet')
-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 72d1fa3ec6..2fd9aa1a6f 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
{