8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Cleanup: replace const by constexpr.

This commit is contained in:
Adriano dos Santos Fernandes 2023-09-18 20:27:14 -03:00
parent 0f978d3ee0
commit 8b0a0d7e86
2 changed files with 9 additions and 9 deletions

View File

@ -1579,7 +1579,7 @@ class ParameterNode final : public TypedNode<ValueExprNode, ExprNode::TYPE_PARAM
private:
// CVC: This is a guess for the length of the parameter for LIKE and others, when the
// original dtype isn't string and force_varchar is true.
static const int LIKE_PARAM_LEN = 30;
static constexpr int LIKE_PARAM_LEN = 30;
public:
explicit ParameterNode(MemoryPool& pool);

View File

@ -292,10 +292,10 @@ public:
class DeclareCursorNode final : public TypedNode<StmtNode, StmtNode::TYPE_DECLARE_CURSOR>
{
public:
static const USHORT CUR_TYPE_NONE = 0;
static const USHORT CUR_TYPE_EXPLICIT = 1;
static const USHORT CUR_TYPE_FOR = 2;
static const USHORT CUR_TYPE_ALL = (CUR_TYPE_EXPLICIT | CUR_TYPE_FOR);
static constexpr USHORT CUR_TYPE_NONE = 0;
static constexpr USHORT CUR_TYPE_EXPLICIT = 1;
static constexpr USHORT CUR_TYPE_FOR = 2;
static constexpr USHORT CUR_TYPE_ALL = CUR_TYPE_EXPLICIT | CUR_TYPE_FOR;
explicit DeclareCursorNode(MemoryPool& pool, const MetaName& aDsqlName = NULL,
USHORT aDsqlCursorType = CUR_TYPE_NONE)
@ -1557,10 +1557,10 @@ public:
ISO_LEVEL_READ_COMMITTED_READ_CONSISTENCY
};
static const unsigned LOCK_MODE_SHARED = 0x1;
static const unsigned LOCK_MODE_PROTECTED = 0x2;
static const unsigned LOCK_MODE_READ = 0x4;
static const unsigned LOCK_MODE_WRITE = 0x8;
static constexpr unsigned LOCK_MODE_SHARED = 0x1;
static constexpr unsigned LOCK_MODE_PROTECTED = 0x2;
static constexpr unsigned LOCK_MODE_READ = 0x4;
static constexpr unsigned LOCK_MODE_WRITE = 0x8;
public:
explicit SetTransactionNode(MemoryPool& pool)