Skip to content

Commit f73ed9c

Browse files
authored
Merge pull request #245 from evoskuil/master
Rename DEFAULT/DELETE macros.
2 parents 9dad7f9 + 9a90109 commit f73ed9c

File tree

12 files changed

+13
-13
lines changed

12 files changed

+13
-13
lines changed

include/bitcoin/protocol/config/authority.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace protocol {
3636
class BCP_API authority
3737
{
3838
public:
39-
DEFAULT5(authority);
39+
DEFAULT_COPY_MOVE_DESTRUCT(authority);
4040

4141
typedef std::shared_ptr<authority> ptr;
4242

include/bitcoin/protocol/config/endpoint.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ namespace protocol {
3636
class BCP_API endpoint
3737
{
3838
public:
39-
DEFAULT5(endpoint);
39+
DEFAULT_COPY_MOVE_DESTRUCT(endpoint);
4040

4141
typedef std::shared_ptr<endpoint> ptr;
4242

include/bitcoin/protocol/config/sodium.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ namespace protocol {
3232
class BCP_API sodium
3333
{
3434
public:
35-
DEFAULT5(sodium);
35+
DEFAULT_COPY_MOVE_DESTRUCT(sodium);
3636

3737
/// A list of base85 values.
3838
/// This must provide operator<< for ostream in order to be used as a

include/bitcoin/protocol/zmq/authenticator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BCP_API authenticator
4040
: public worker
4141
{
4242
public:
43-
DELETE4(authenticator);
43+
DELETE_COPY_MOVE(authenticator);
4444

4545
/// A shared authenticator pointer.
4646
typedef std::shared_ptr<authenticator> ptr;

include/bitcoin/protocol/zmq/certificate.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ namespace zmq {
3434
class BCP_API certificate
3535
{
3636
public:
37-
DEFAULT5(certificate);
37+
DEFAULT_COPY_MOVE_DESTRUCT(certificate);
3838

3939
/// Construct an arbitary keypair as a new certificate.
4040
/// This always reduces keyspace, disallowing '#' in text encoding.

include/bitcoin/protocol/zmq/context.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class BCP_API context
3636
: public enable_shared_from_base<context>
3737
{
3838
public:
39-
DELETE4(context);
39+
DELETE_COPY_MOVE(context);
4040

4141
/// A shared context pointer.
4242
typedef std::shared_ptr<context> ptr;

include/bitcoin/protocol/zmq/frame.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class BCP_API frame
3535
: public enable_shared_from_base<frame>
3636
{
3737
public:
38-
DEFAULT4(frame);
38+
DEFAULT_COPY_MOVE(frame);
3939

4040
/// A shared frame pointer.
4141
typedef std::shared_ptr<frame> ptr;
@@ -72,7 +72,7 @@ class BCP_API frame
7272
bool destroy() NOEXCEPT;
7373

7474
bool more_;
75-
const bool valid_;
75+
bool valid_;
7676

7777
// Mutability is a hack around lack of const overloads in zeromq, allowing
7878
// the payload method to be properly const while other access is not.

include/bitcoin/protocol/zmq/identifiers.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ typedef intptr_t identifier;
3535
class BCP_API identifiers
3636
{
3737
public:
38-
DEFAULT5(identifiers);
38+
DEFAULT_COPY_MOVE_DESTRUCT(identifiers);
3939

4040
/// Construct.
4141
identifiers() NOEXCEPT;

include/bitcoin/protocol/zmq/message.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ namespace zmq {
3535
class BCP_API message
3636
{
3737
public:
38-
DEFAULT5(message);
38+
DEFAULT_COPY_MOVE_DESTRUCT(message);
3939

4040
/// A zeromq route identifier is always this size.
4141
static constexpr size_t address_size = 5;

include/bitcoin/protocol/zmq/poller.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class BCP_API poller
3838
: public enable_shared_from_base<poller>
3939
{
4040
public:
41-
DELETE5(poller);
41+
DELETE_COPY_MOVE_DESTRUCT(poller);
4242

4343
/// A shared poller pointer.
4444
typedef std::shared_ptr<poller> ptr;

0 commit comments

Comments
 (0)