~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/null.h

  • 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:
32
32
public:
33
33
  Field_null(uchar *ptr_arg, uint32_t len_arg,
34
34
             enum utype unireg_check_arg, const char *field_name_arg,
35
 
             CHARSET_INFO *cs)
 
35
             const CHARSET_INFO * const cs)
36
36
    :Field_str(ptr_arg, len_arg, null, 1,
37
37
               unireg_check_arg, field_name_arg, cs)
38
38
    {}
39
39
  enum_field_types type() const { return DRIZZLE_TYPE_NULL;}
40
40
  int  store(const char *to __attribute__((unused)),
41
41
             uint length __attribute__((unused)),
42
 
             CHARSET_INFO *cs __attribute__((unused)))
 
42
             const CHARSET_INFO * const cs __attribute__((unused)))
43
43
  { null[0]=1; return 0; }
44
44
  int store(double nr __attribute__((unused)))
45
45
  { null[0]=1; return 0; }