diff options
| author | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-11 17:09:09 +0000 |
|---|---|---|
| committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2012-07-11 17:09:09 +0000 |
| commit | bb22e7b2a0af67cc65ce5179917b20e5977ed4ef (patch) | |
| tree | 120e18f5a61144f3f632263e05cb49109f672615 /plugins/Skins/SkinLib/scope.h | |
| parent | 3b8d44fb4646951be55b3777cbe30d3280867067 (diff) | |
MyDetails reverted to older version that doesn't use Skins plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Skins/SkinLib/scope.h')
| -rw-r--r-- | plugins/Skins/SkinLib/scope.h | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/plugins/Skins/SkinLib/scope.h b/plugins/Skins/SkinLib/scope.h deleted file mode 100644 index 2fad797b88..0000000000 --- a/plugins/Skins/SkinLib/scope.h +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef __PTR_H__
-# define __PTR_H__
-
-
-template<class T>
-class scope
-{
-public:
- scope() : p(NULL) {}
- scope(T t) : p(t) {}
- ~scope() { release(); }
-
- void release()
- {
- if (p != NULL)
- delete p;
- p = NULL;
- }
-
- T operator=(T t) { release(); p = t; return t; }
- 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__
|
