@@ -344,7 +344,7 @@ static gboolean _is_number(char *str)
344344 return TRUE;
345345}
346346
347- static uint8_t _get_var_parameter (char * * variable , int default_value )
347+ static uint8_t _get_var_parameter (char * * variable , const int default_value )
348348{
349349 uint8_t val = default_value ;
350350 if (* variable [0 ] == '[' )
@@ -586,13 +586,15 @@ static char *_get_base_value(dt_variables_params_t *params, char **variable)
586586 if (sqlite3_step (stmt ) == SQLITE_ROW )
587587 highest_id = sqlite3_column_int (stmt , 0 );
588588 sqlite3_finalize (stmt );
589- // determine how many zero-padded digits to use with an optional parameter: $(IMAGE.ID.NEXT[n]), default n=1
589+ // determine how many zero-padded digits to use with an optional
590+ // parameter: $(IMAGE.ID.NEXT[n]), default n=1
590591 uint8_t nb_digit = _get_var_parameter (variable , 1 );
591592 result = g_strdup_printf ("%0*u" , nb_digit , highest_id + 1 );
592593 }
593594 else if (_has_prefix (variable , "ID" ) || _has_prefix (variable , "IMAGE.ID" ))
594595 {
595- // determine how many zero-padded digits to use with an optional parameter: $(IMAGE.ID[n]), default n=1
596+ // determine how many zero-padded digits to use with an optional
597+ // parameter: $(IMAGE.ID[n]), default n=1
596598 uint8_t nb_digit = _get_var_parameter (variable , 1 );
597599 result = g_strdup_printf ("%0*u" , nb_digit , params -> imgid );
598600 }
0 commit comments