~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/double.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:
29
29
  double precision floating point numbers
30
30
****************************************************************************/
31
31
 
32
 
int Field_double::store(const char *from,uint len,CHARSET_INFO *cs)
 
32
int Field_double::store(const char *from,uint len, const CHARSET_INFO * const cs)
33
33
{
34
34
  int error;
35
35
  char *end;
287
287
 
288
288
void Field_double::sql_type(String &res) const
289
289
{
290
 
  CHARSET_INFO *cs=res.charset();
 
290
  const CHARSET_INFO * const cs=res.charset();
291
291
  if (dec == NOT_FIXED_DEC)
292
292
  {
293
293
    res.set_ascii(STRING_WITH_LEN("double"));