~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_timefunc.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:
742
742
class Item_char_typecast :public Item_typecast
743
743
{
744
744
  int cast_length;
745
 
  CHARSET_INFO *cast_cs, *from_cs;
 
745
  const CHARSET_INFO *cast_cs, *from_cs;
746
746
  bool charset_conversion;
747
747
  String tmp_value;
748
748
public:
749
 
  Item_char_typecast(Item *a, int length_arg, CHARSET_INFO *cs_arg)
 
749
  Item_char_typecast(Item *a, int length_arg, const CHARSET_INFO * const cs_arg)
750
750
    :Item_typecast(a), cast_length(length_arg), cast_cs(cs_arg) {}
751
751
  enum Functype functype() const { return CHAR_TYPECAST_FUNC; }
752
752
  bool eq(const Item *item, bool binary_cmp) const;