summaryrefslogtreecommitdiff
path: root/plugins/Utils/mir_scope.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-26 08:46:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-26 08:46:45 +0000
commit12718514fb673dbb72f7d93ea3bb34c9574bd69a (patch)
tree91569255bd22163c21eb9f22ceb388db16f53e19 /plugins/Utils/mir_scope.h
parent3856c86d711275b80e09371cad10b8b828a5879a (diff)
replace sprintf to mir_snprintf (part 7)
removed not used files git-svn-id: http://svn.miranda-ng.org/main/trunk@5490 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Utils/mir_scope.h')
-rw-r--r--plugins/Utils/mir_scope.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/plugins/Utils/mir_scope.h b/plugins/Utils/mir_scope.h
deleted file mode 100644
index 2f54044d83..0000000000
--- a/plugins/Utils/mir_scope.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef __PTR_H__
-# define __PTR_H__
-
-
-template<class T>
-class scope
-{
-public:
- scope(T t) : p(t) {}
- ~scope() { mir_free(); }
-
- void free()
- {
- if (p != NULL)
- mir_free(p);
- p = NULL;
- }
-
-// T operator->() const { return p; }
- operator T() const { return p; }
-
- T detach()
- {
- T ret = p;
- p = NULL;
- return ret;
- }
-
-private:
- T p;
-};
-
-
-
-#endif // __PTR_H__