@@ -41,7 +41,7 @@ using namespace Firebird;
4141// When converting non-text values to text, how many bytes to allocate
4242// for holding the text image of the value.
4343
44- static const USHORT _DSC_convert_to_text_length[DTYPE_TYPE_MAX] =
44+ static constexpr USHORT _DSC_convert_to_text_length[DTYPE_TYPE_MAX] =
4545{
4646 0 , // dtype_unknown
4747 0 , // dtype_text
@@ -77,7 +77,7 @@ static const USHORT _DSC_convert_to_text_length[DTYPE_TYPE_MAX] =
7777
7878// Unimplemented names are in lowercase & <brackets>
7979// Datatypes that represent a range of SQL datatypes are in lowercase
80- static const TEXT* const DSC_dtype_names[] =
80+ static constexpr const TEXT* DSC_dtype_names[] =
8181{
8282 " <dtype_unknown>" ,
8383 " CHAR" ,
@@ -1351,12 +1351,12 @@ const BYTE DSC_multiply_blr4_result[DTYPE_TYPE_MAX][DTYPE_TYPE_MAX] =
13511351};
13521352
13531353#ifdef DEV_BUILD
1354- static bool validate_dsc_tables ();
1354+ static bool validate_dsc_tables () noexcept ;
13551355#endif
13561356
13571357
13581358
1359- USHORT dsc::getStringLength () const
1359+ USHORT dsc::getStringLength () const noexcept
13601360{
13611361 return DSC_string_length (this );
13621362}
@@ -1533,7 +1533,7 @@ bool DSC_make_descriptor(DSC* desc,
15331533}
15341534
15351535
1536- USHORT DSC_string_length (const dsc* desc)
1536+ USHORT DSC_string_length (const dsc* desc) noexcept
15371537{
15381538/* *************************************
15391539 *
@@ -1569,7 +1569,7 @@ USHORT DSC_string_length(const dsc* desc)
15691569}
15701570
15711571
1572- const TEXT * DSC_dtype_tostring (UCHAR dtype)
1572+ const TEXT* DSC_dtype_tostring (UCHAR dtype) noexcept
15731573{
15741574/* *************************************
15751575 *
@@ -1604,7 +1604,7 @@ void DSC_get_dtype_name(const dsc* desc, TEXT * buffer, USHORT len)
16041604}
16051605
16061606
1607- const char * dsc::typeToText () const
1607+ const char * dsc::typeToText () const noexcept
16081608{
16091609 switch (dsc_dtype)
16101610 {
@@ -1805,13 +1805,13 @@ void dsc::address32bit() const
18051805 *
18061806 **************************************/
18071807#if SIZEOF_VOID_P > 4
1808- FB_UINT64 addr = (FB_UINT64)(IPTR) dsc_address;
1808+ const FB_UINT64 addr = (FB_UINT64)(IPTR) dsc_address;
18091809 fb_assert (addr == (addr & 0xFFFFFFFF ));
18101810#endif
18111811}
18121812
18131813
1814- static bool validate_dsc_tables ()
1814+ static bool validate_dsc_tables () noexcept
18151815{
18161816/* *************************************
18171817 *
0 commit comments