~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/util/functors.h

  • Committer: Lee Bieber
  • Date: 2011-03-01 17:15:47 UTC
  • mfrom: (2211.1.4 build)
  • Revision ID: kalebral@gmail.com-20110301171547-g224i2h5vvtcdam7
Merge Shrews - 726741: Do not pass FLUSH or ANALYZE through replication stream
Merge Olaf - more code refactoring
Merge Andrew - Add two new domain processes to sphinx and use in the plugin docs
Merge Patrick - 726914: Need to update dbqp randgen config files for slave_plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
  }
35
35
};
36
36
 
37
 
class SafeDeletePtr
38
 
{
39
 
public:
40
 
  template<typename T>
41
 
  inline void operator()(const T *ptr) const
42
 
  {
43
 
    if (ptr)
44
 
                        delete ptr;
45
 
  }
46
 
};
47
 
 
48
37
} /* namespace drizzled */
49
38
 
50
39
#endif /* DRIZZLED_UTIL_FUNCTORS_H */