~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

Removing redundant use of casts in drizzled/ for memcmp(), memcpy(), memset(), and memmove().
Adding non-const version of String::ptr() to provide covariance on const:ness.

Show diffs side-by-side

added added

removed removed

Lines of Context:
235
235
    If we add little-endian UCS-2 sometimes, this code
236
236
    will be more complicated. But it's OK for now.
237
237
  */
238
 
  memset((char*) Ptr, 0, offset);
 
238
  memset(Ptr, 0, offset);
239
239
  memcpy(Ptr + offset, str, arg_length);
240
240
  Ptr[aligned_length]=0;
241
241
  /* str_length is always >= 0 as arg_length is != 0 */