@@ -45,7 +45,7 @@ namespace
45
45
using namespace Firebird ;
46
46
47
47
using MsgFormat::SafeArg;
48
- const USHORT TRACEMGR_MSG_FAC = 25 ;
48
+ constexpr USHORT TRACEMGR_MSG_FAC = FB_IMPL_MSG_FACILITY_FBTRACEMGR ;
49
49
50
50
void printMsg (USHORT number, const SafeArg& arg, bool newLine = true )
51
51
{
@@ -63,7 +63,7 @@ namespace
63
63
printMsg (number, dummy, newLine);
64
64
}
65
65
66
- void usage (UtilSvc* uSvc, const ISC_STATUS code, const char * msg1 = NULL , const char * msg2 = NULL )
66
+ [[noreturn]] void usage (UtilSvc* uSvc, const ISC_STATUS code, const char * msg1 = NULL , const char * msg2 = NULL )
67
67
{
68
68
if (uSvc->isService ())
69
69
{
@@ -80,7 +80,7 @@ namespace
80
80
{
81
81
printMsg (2 , false ); // ERROR:
82
82
USHORT dummy;
83
- USHORT number = (USHORT) gds__decode (code, &dummy, &dummy);
83
+ const USHORT number = (USHORT) gds__decode (code, &dummy, &dummy);
84
84
fb_assert (number);
85
85
SafeArg safe;
86
86
if (msg1)
@@ -94,9 +94,9 @@ namespace
94
94
95
95
// If the items aren't contiguous, a scheme like in nbackup.cpp will have to be used.
96
96
// ASF: This is message codes!
97
- const int MAIN_USAGE[] = {3 , 21 };
98
- const int EXAMPLES[] = {22 , 27 };
99
- const int NOTES[] = {28 , 29 };
97
+ constexpr int MAIN_USAGE[] = {3 , 21 };
98
+ constexpr int EXAMPLES[] = {22 , 27 };
99
+ constexpr int NOTES[] = {28 , 29 };
100
100
101
101
for (int i = MAIN_USAGE[0 ]; i <= MAIN_USAGE[1 ]; ++i)
102
102
printMsg (i);
0 commit comments