@@ -132,16 +132,16 @@ static void t_start_auto(const act*, const gpre_req*, const TEXT*, int, bool);
132
132
static bool global_first_flag = false ;
133
133
static const TEXT* global_status_name = 0 ;
134
134
135
- const int INDENT = 3 ;
135
+ constexpr int INDENT = 3 ;
136
136
137
- static const char * const NULL_STRING = " NULL" ;
138
- static const char * const NULL_STATUS = " NULL" ;
139
- static const char * const NULL_SQLDA = " NULL" ;
137
+ static constexpr const char * NULL_STRING = " NULL" ;
138
+ static constexpr const char * NULL_STATUS = " NULL" ;
139
+ static constexpr const char * NULL_SQLDA = " NULL" ;
140
140
141
- static const char * const GDS_INCLUDE = " <ibase.h>" ;
141
+ static constexpr const char * GDS_INCLUDE = " <ibase.h>" ;
142
142
143
- static const char * const DCL_LONG = " ISC_LONG" ;
144
- static const char * const DCL_QUAD = " ISC_QUAD" ;
143
+ static constexpr const char * DCL_LONG = " ISC_LONG" ;
144
+ static constexpr const char * DCL_QUAD = " ISC_QUAD" ;
145
145
146
146
static inline void begin (const int column)
147
147
{
@@ -251,6 +251,10 @@ void OBJ_CXX_action(const act* action, int column)
251
251
case ACT_update:
252
252
case ACT_statistics:
253
253
begin (column);
254
+ break ;
255
+ default :
256
+ // no leading brace needed
257
+ break ;
254
258
}
255
259
256
260
switch (action->act_type )
@@ -666,7 +670,7 @@ static void asgn_to( const act* action, ref* reference, int column)
666
670
667
671
// Pick up NULL value if one is there
668
672
669
- if (reference = reference->ref_null )
673
+ if (( reference = reference->ref_null ) )
670
674
{
671
675
align (column);
672
676
fprintf (gpreGlob.out_file , " %s = %s;" , reference->ref_value ,
@@ -695,7 +699,7 @@ static void asgn_to( const act* action, ref* reference, int column)
695
699
696
700
// Pick up NULL value if one is there
697
701
698
- if (reference = reference->ref_null )
702
+ if (( reference = reference->ref_null ) )
699
703
{
700
704
align (column);
701
705
fprintf (gpreGlob.out_file , " %s = %s;" , reference->ref_value , gen_name (s, reference, true ));
@@ -1057,7 +1061,7 @@ static void gen_blob_open( const act* action, USHORT column)
1057
1061
fprintf (gpreGlob.out_file , " %s = %s;" , s, reference->ref_value );
1058
1062
}
1059
1063
1060
- if (args.pat_value1 = blob->blb_bpb_length )
1064
+ if (( args.pat_value1 = blob->blb_bpb_length ) )
1061
1065
PATTERN_expand (column, pattern1, &args);
1062
1066
else
1063
1067
PATTERN_expand (column, pattern2, &args);
@@ -3364,7 +3368,7 @@ static void gen_t_start( const act* action, int column)
3364
3368
3365
3369
if (trans->tra_db_count == 1 )
3366
3370
{
3367
- printa (column, " %s = %s->startTransaction(%s, %d, fb_tpb_%d);" ,
3371
+ ` printa (column, " %s = %s->startTransaction(%s, %d, fb_tpb_%d);" ,
3368
3372
trans->tra_handle ? trans->tra_handle : gpreGlob.transaction_name ,
3369
3373
trans->tra_tpb ->tpb_database ->dbb_name ->sym_string , vector,
3370
3374
trans->tra_tpb ->tpb_length , trans->tra_tpb ->tpb_ident );
0 commit comments