C++20 Round 5: typedef -> using, IMPLEMENT_SERIALIZE macro cleanup
- Convert 15 typedef declarations to C++11 using aliases across 12 files: script.h (valtype, CTxDestination), serialize.h (CSerializeData), keystore.h (KeyMap, ScriptMap, CryptedKeyMap), sync.h (CCriticalSection, CWaitableCriticalSection), sync.cpp (LockStack), key.h (CPrivKey, CSecret), crypter.h (CKeyingMaterial), allocators.h (SecureString), main.h (MapPrevTx), wallet.h (mapValue_t, removed duplicate), miner.cpp (TxPriority), kernel.cpp (MapModifierCheckpoints) - Remove redundant duplicate mapValue_t typedef in wallet.h - IMPLEMENT_SERIALIZE macro: replace assert() warning suppression with [[maybe_unused]] attributes on fGetSize/fWrite/fRead/nSerSize
This commit is contained in:
+1
-1
@@ -46,7 +46,7 @@ private:
|
||||
int sourceLine;
|
||||
};
|
||||
|
||||
typedef std::vector< std::pair<void*, CLockLocation> > LockStack;
|
||||
using LockStack = std::vector<std::pair<void*, CLockLocation>>;
|
||||
|
||||
static std::mutex dd_mutex;
|
||||
static std::map<std::pair<void*, void*>, LockStack> lockorders;
|
||||
|
||||
Reference in New Issue
Block a user