Browse Source
0.16a357293
Use MakeUnique<Db>(...) (practicalswift)3e09b39
Use MakeUnique<T>(...) instead of std::unique_ptr<T>(new T(...)) (practicalswift)8617989
Add MakeUnique (substitute for C++14 std::make_unique) (practicalswift)d223bc9
Use unique_ptr for pcoinscatcher/pcoinsdbview/pcoinsTip/pblocktree (practicalswift)b45c597
Use unique_ptr for pdbCopy (Db) and fix potential memory leak (practicalswift)29ab96d
Use unique_ptr for dbenv (DbEnv) (practicalswift)f72cbf9
Use unique_ptr for pfilter (CBloomFilter) (practicalswift)8ccf1bb
Use unique_ptr for sem{Addnode,Outbound} (CSemaphore) (practicalswift)73db063
Use unique_ptr for upnp_thread (boost::thread) (practicalswift)0024531
Use unique_ptr for dbw (CDBWrapper) (practicalswift)fa6d122
Use unique_ptr:s for {fee,short,long}Stats (TxConfirmStats) (practicalswift)5a6f768
Use unique_ptr for httpRPCTimerInterface (HTTPRPCTimerInterface) (practicalswift)860e912
Use unique_ptr for pwalletMain (CWallet) (practicalswift) Pull request description: Use `std::unique_ptr` (C++11) where possible. Rationale: 1. Avoid resource leaks (specifically: forgetting to `delete` an object created using `new`) 2. Avoid undefined behaviour (specifically: double `delete`:s) **Note to reviewers:** Please let me know if I've missed any obvious `std::unique_ptr` candidates. Hopefully this PR should cover all the trivial cases. Tree-SHA512: 9fbeb47b800ab8ff4e0be9f2a22ab63c23d5c613a0c6716d9183db8d22ddbbce592fb8384a8b7874bf7375c8161efb13ca2197ad6f24b75967148037f0f7b20c
Wladimir J. van der Laan
7 years ago
20 changed files with 104 additions and 131 deletions
Loading…
Reference in new issue