~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/lex_string.h

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 15:59:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2384.
  • Revision ID: olafvdspek@gmail.com-20110705155949-7cojlehrjxt2ck95
Add const
Remove unused vars

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
/* This definition must match the one given in mysql/plugin.h */
31
31
struct LEX_STRING
32
32
{
33
 
  char *str;
 
33
  const char* begin() const
 
34
  {
 
35
    return str;
 
36
  }
 
37
 
 
38
  const char* end() const
 
39
  {
 
40
    return str + length;
 
41
  }
 
42
 
 
43
  char* str;
34
44
  size_t length;
35
45
};
36
46