Skip to content

Commit 6c160e8

Browse files
committed
inline constexpr in Protocol
1 parent b86a871 commit 6c160e8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/jrd/replication/Protocol.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
namespace Replication
2828
{
2929
// Supported protocol versions
30-
const USHORT PROTOCOL_VERSION_1 = 1;
31-
const USHORT PROTOCOL_VERSION_2 = 2; // support for schemas
32-
const USHORT PROTOCOL_CURRENT_VERSION = PROTOCOL_VERSION_2;
30+
inline constexpr USHORT PROTOCOL_VERSION_1 = 1;
31+
inline constexpr USHORT PROTOCOL_VERSION_2 = 2; // support for schemas
32+
inline constexpr USHORT PROTOCOL_CURRENT_VERSION = PROTOCOL_VERSION_2;
3333

3434
// Global (protocol neutral) flags
35-
const USHORT BLOCK_BEGIN_TRANS = 0x0001;
36-
const USHORT BLOCK_END_TRANS = 0x0002;
35+
inline constexpr USHORT BLOCK_BEGIN_TRANS = 0x0001;
36+
inline constexpr USHORT BLOCK_END_TRANS = 0x0002;
3737

3838
struct Block
3939
{

0 commit comments

Comments
 (0)