~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_alloc.h

  • Committer: Trond Norbye
  • Date: 2009-12-15 16:46:56 UTC
  • mto: (1241.2.2 build)
  • mto: This revision was merged to the branch mainline in revision 1242.
  • Revision ID: trond.norbye@sun.com-20091215164656-h2zyydrg474w0gy4
Cleanup: use C++ style casting, init-list and virtual destructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
class Sql_alloc
40
40
{
41
41
public:
 
42
  /* Base classes should have virtual destructor */
 
43
  virtual ~Sql_alloc() {}
 
44
 
42
45
  static void *operator new(size_t size) throw ()
43
46
  {
44
47
    return sql_alloc(size);
62
65
#ifdef HAVE_purify
63
66
  bool dummy;
64
67
  inline Sql_alloc() :dummy(0) {}
65
 
  inline ~Sql_alloc() {}
66
68
#else
67
69
  inline Sql_alloc() {}
68
 
  inline ~Sql_alloc() {}
69
70
#endif
70
71
 
71
72
};