mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Rename IMPLEMENT_SERIALIZE to ADD_SERIALIZE_METHODS
This commit is contained in:
@@ -91,9 +91,9 @@ enum
|
||||
|
||||
/* Implement three methods for serializable objects. These are actually wrappers over
|
||||
* "SerializationOp" template, which implements the body of each class' serialization
|
||||
* code. Adding "IMPLEMENT_SERIALIZE" in the body of the class causes these wrappers to be
|
||||
* code. Adding "ADD_SERIALIZE_METHODS" in the body of the class causes these wrappers to be
|
||||
* added as members. */
|
||||
#define IMPLEMENT_SERIALIZE \
|
||||
#define ADD_SERIALIZE_METHODS \
|
||||
size_t GetSerializeSize(int nType, int nVersion) const { \
|
||||
CSizeComputer s(nType, nVersion); \
|
||||
NCONST_PTR(this)->SerializationOp(s, CSerActionSerialize(), nType, nVersion);\
|
||||
@@ -807,7 +807,7 @@ void Unserialize(Stream& is, std::set<K, Pred, A>& m, int nType, int nVersion)
|
||||
|
||||
|
||||
//
|
||||
// Support for IMPLEMENT_SERIALIZE and READWRITE macro
|
||||
// Support for ADD_SERIALIZE_METHODS and READWRITE macro
|
||||
//
|
||||
struct CSerActionSerialize
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user