~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/object_creation_ctx.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:
50
50
class Default_object_creation_ctx : public Object_creation_ctx
51
51
{
52
52
public:
53
 
  CHARSET_INFO *get_client_cs()
 
53
  const CHARSET_INFO *get_client_cs()
54
54
  {
55
55
    return m_client_cs;
56
56
  }
57
57
 
58
 
  CHARSET_INFO *get_connection_cl()
 
58
  const CHARSET_INFO *get_connection_cl()
59
59
  {
60
60
    return m_connection_cl;
61
61
  }
63
63
protected:
64
64
  Default_object_creation_ctx(THD *thd);
65
65
 
66
 
  Default_object_creation_ctx(CHARSET_INFO *client_cs,
67
 
                              CHARSET_INFO *connection_cl);
 
66
  Default_object_creation_ctx(const CHARSET_INFO * const client_cs,
 
67
                              const CHARSET_INFO * const connection_cl);
68
68
 
69
69
protected:
70
70
  virtual Object_creation_ctx *create_backup_ctx(THD *thd) const;
81
81
    in order to parse the query properly we have to switch client character
82
82
    set on parsing.
83
83
  */
84
 
  CHARSET_INFO *m_client_cs;
 
84
  const CHARSET_INFO *m_client_cs;
85
85
 
86
86
  /**
87
87
    connection_cl stores the value of collation_connection session
91
91
    the character set and collation of text literals in internal
92
92
    representation of query (item-objects).
93
93
  */
94
 
  CHARSET_INFO *m_connection_cl;
 
94
  const CHARSET_INFO *m_connection_cl;
95
95
};
96
96
 
97
97
#endif /* DRIZZLE_SERVER_OBJECT_CREATION_CTX_H */