~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/timestamp.cc

  • Committer: Andrey Hristov
  • Date: 2008-08-06 00:04:45 UTC
  • mto: (264.1.5 codestyle)
  • mto: This revision was merged to the branch mainline in revision 266.
  • Revision ID: ahristov@mysql.com-20080806000445-84urmltikgwk9v5d
Constify the usage of CHARSET_INFO almost to the last place in the code.
99% of the parameters are const CHARSET_INFO * const cs.
Wherever possible stack variables are also double consted.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
                                 enum utype unireg_check_arg,
75
75
                                 const char *field_name_arg,
76
76
                                 TABLE_SHARE *share,
77
 
                                 CHARSET_INFO *cs)
 
77
                                 const CHARSET_INFO * const cs)
78
78
  :Field_str(ptr_arg, MAX_DATETIME_WIDTH, null_ptr_arg, null_bit_arg,
79
79
             unireg_check_arg, field_name_arg, cs)
80
80
{
93
93
 
94
94
Field_timestamp::Field_timestamp(bool maybe_null_arg,
95
95
                                 const char *field_name_arg,
96
 
                                 CHARSET_INFO *cs)
 
96
                                 const CHARSET_INFO * const cs)
97
97
  :Field_str((uchar*) 0, MAX_DATETIME_WIDTH,
98
98
             maybe_null_arg ? (uchar*) "": 0, 0,
99
99
             NONE, field_name_arg, cs)
142
142
 
143
143
int Field_timestamp::store(const char *from,
144
144
                           uint len,
145
 
                           CHARSET_INFO *cs __attribute__((unused)))
 
145
                           const CHARSET_INFO * const cs __attribute__((unused)))
146
146
{
147
147
  DRIZZLE_TIME l_time;
148
148
  my_time_t tmp= 0;