~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.h

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:
98
98
  inline void length(uint32_t len) { str_length=len ; }
99
99
  inline bool is_empty() { return (str_length == 0); }
100
100
  inline void mark_as_const() { Alloced_length= 0;}
 
101
  inline char *ptr() { return Ptr; }
101
102
  inline const char *ptr() const { return Ptr; }
102
103
  inline char *c_ptr()
103
104
  {