Skip to content

Commit b86a871

Browse files
committed
inline constexpr in flags
1 parent fadcef2 commit b86a871

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/jrd/flags.h

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,26 @@
2626

2727
// flags for RDB$FILE_FLAGS. Do not change as they are part of backups
2828

29-
const USHORT FILE_shadow = 1;
30-
const USHORT FILE_inactive = 2;
31-
const USHORT FILE_manual = 4;
32-
const USHORT FILE_conditional = 16;
33-
const USHORT FILE_nodelete = 32;
29+
inline constexpr USHORT FILE_shadow = 1;
30+
inline constexpr USHORT FILE_inactive = 2;
31+
inline constexpr USHORT FILE_manual = 4;
32+
inline constexpr USHORT FILE_conditional = 16;
33+
inline constexpr USHORT FILE_nodelete = 32;
3434

3535
// Flags for backup difference files
3636
// File is difference
37-
const USHORT FILE_difference = 32;
37+
inline constexpr USHORT FILE_difference = 32;
3838
// Actively used for backup purposes (ALTER DATABASE BEGIN BACKUP issued)
39-
const USHORT FILE_backing_up = 64;
39+
inline constexpr USHORT FILE_backing_up = 64;
4040

4141

4242
// flags for RDB$RELATIONS
4343

44-
const USHORT REL_sql = 0x0001;
44+
inline constexpr USHORT REL_sql = 0x0001;
4545

4646
// flags for RDB$TRIGGERS
4747

48-
const USHORT TRG_sql = 0x1;
49-
const USHORT TRG_ignore_perm = 0x2; // trigger ignores permissions checks
48+
inline constexpr USHORT TRG_sql = 0x1;
49+
inline constexpr USHORT TRG_ignore_perm = 0x2; // trigger ignores permissions checks
5050

5151
#endif // JRD_FLAGS_H

0 commit comments

Comments
 (0)