~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.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:
69
69
{ }
70
70
 
71
71
Default_object_creation_ctx::Default_object_creation_ctx(
72
 
  CHARSET_INFO *client_cs, CHARSET_INFO *connection_cl)
 
72
  const CHARSET_INFO * const client_cs, const CHARSET_INFO * const connection_cl)
73
73
  : m_client_cs(client_cs),
74
74
    m_connection_cl(connection_cl)
75
75
{ }
886
886
    uint pack_flag, interval_nr, unireg_type, recpos, field_length;
887
887
    enum_field_types field_type;
888
888
    enum column_format_type column_format= COLUMN_FORMAT_TYPE_DEFAULT;
889
 
    CHARSET_INFO *charset=NULL;
 
889
    const CHARSET_INFO *charset= NULL;
890
890
    LEX_STRING comment;
891
891
 
892
892
    if (field_extra_info)