Skip to content

Commit 54d538c

Browse files
committed
constexpr in idx
1 parent e326830 commit 54d538c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jrd/idx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
/* Indices to be created */
3131

3232
/* Maximum number of segments in any existing system index */
33-
const int INI_IDX_MAX_SEGMENTS = 4;
33+
inline constexpr int INI_IDX_MAX_SEGMENTS = 4;
3434

3535
struct ini_idx_t
3636
{
@@ -58,7 +58,7 @@ using Jrd::idx_timestamp_tz;
5858
#define INDEX(id, rel, unique, count, ods) {(id), (UCHAR) (rel), (unique), (count), (ods), {
5959
#define SEGMENT(fld, type) {(fld), (type)}
6060

61-
static const struct ini_idx_t indices[] =
61+
static inline constexpr struct ini_idx_t indices[] =
6262
{
6363
// define index RDB$INDEX_0 for RDB$RELATIONS unique RDB$SCHEMA_NAME, RDB$RELATION_NAME;
6464
INDEX(0, rel_relations, idx_unique, 2, ODS_14_0)

0 commit comments

Comments
 (0)