summaryrefslogtreecommitdiff
path: root/otk/assassin.hh
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-03 10:38:14 +0000
committerDana Jansens <danakj@orodu.net>2002-11-03 10:38:14 +0000
commit37e56007680a6664967e0e71ac52981654def6a6 (patch)
treef33f89d6cef571f04d4a210db41265ed1076fcb2 /otk/assassin.hh
parentfa8cefef63feb1d559c40db3cf9407e5bd1ac4df (diff)
move Rect and PointerAssassin into the toolkit
Diffstat (limited to 'otk/assassin.hh')
-rw-r--r--otk/assassin.hh15
1 files changed, 15 insertions, 0 deletions
diff --git a/otk/assassin.hh b/otk/assassin.hh
new file mode 100644
index 00000000..89e98153
--- /dev/null
+++ b/otk/assassin.hh
@@ -0,0 +1,15 @@
+#ifndef __assassin_hh
+#define __assassin_hh
+
+namespace otk {
+
+struct PointerAssassin {
+ template<typename T>
+ inline void operator()(const T ptr) const {
+ delete ptr;
+ }
+};
+
+}
+
+#endif // __assassin_hh