Browse Source

Remove global strWalletFile

As it says on the tin. There is no need to have this variable be
global, it's only used in AppInit2.
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
7d4dda7630
  1. 3
      src/init.cpp
  2. 1
      src/init.h

3
src/init.cpp

@ -40,7 +40,6 @@ using namespace std;
using namespace boost; using namespace boost;
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET
std::string strWalletFile;
CWallet* pwalletMain; CWallet* pwalletMain;
#endif #endif
@ -584,7 +583,7 @@ bool AppInit2(boost::thread_group& threadGroup)
} }
bSpendZeroConfChange = GetArg("-spendzeroconfchange", true); bSpendZeroConfChange = GetArg("-spendzeroconfchange", true);
strWalletFile = GetArg("-wallet", "wallet.dat"); std::string strWalletFile = GetArg("-wallet", "wallet.dat");
#endif #endif
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log // ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log

1
src/init.h

@ -14,7 +14,6 @@ namespace boost {
class thread_group; class thread_group;
}; };
extern std::string strWalletFile;
extern CWallet* pwalletMain; extern CWallet* pwalletMain;
void StartShutdown(); void StartShutdown();

Loading…
Cancel
Save