diff options
Diffstat (limited to 'dvi/dvilib/dl-refcounted.hh')
-rwxr-xr-x | dvi/dvilib/dl-refcounted.hh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/dvi/dvilib/dl-refcounted.hh b/dvi/dvilib/dl-refcounted.hh deleted file mode 100755 index 068ac2e..0000000 --- a/dvi/dvilib/dl-refcounted.hh +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef DL_REFCOUNTED_HH -#define DL_REFCOUNTED_HH - -using namespace std; - -typedef unsigned int uint; -typedef unsigned char uchar; - -namespace DviLib { - - class RefCounted - { - int refcount; - - public: - - RefCounted (void) - { - refcount = 1; - } - - RefCounted *ref (void) - { - refcount++; - return this; - } - - void unref (void) - { - refcount--; - if (!refcount) - delete this; - } - }; -} - -#endif // DL_REFCOUNTED_HH |