~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/filesort.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:
709
709
      switch (sort_field->result_type) {
710
710
      case STRING_RESULT:
711
711
      {
712
 
        CHARSET_INFO *cs=item->collation.collation;
 
712
        const CHARSET_INFO * const cs=item->collation.collation;
713
713
        char fill_char= ((cs->state & MY_CS_BINSORT) ? (char) 0 : ' ');
714
714
        int diff;
715
715
        uint sort_field_length;
1362
1362
           bool *multi_byte_charset)
1363
1363
{
1364
1364
  register uint length;
1365
 
  CHARSET_INFO *cs;
 
1365
  const CHARSET_INFO *cs;
1366
1366
  *multi_byte_charset= 0;
1367
1367
 
1368
1368
  length=0;