~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.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:
615
615
  SEL_TREE() :type(KEY)
616
616
  {
617
617
    keys_map.clear_all();
618
 
    memset((char*) keys, 0, sizeof(keys));
 
618
    memset(keys, 0, sizeof(keys));
619
619
  }
620
620
  /*
621
621
    Note: there may exist SEL_TREE objects with sel_tree->type=KEY and
1093
1093
    thd->mem_root= &alloc;
1094
1094
  }
1095
1095
  else
1096
 
    memset((char*) &alloc, 0, sizeof(alloc));
 
1096
    memset(&alloc, 0, sizeof(alloc));
1097
1097
  file= head->file;
1098
1098
  record= head->record[0];
1099
1099
  save_read_set= head->read_set;