summaryrefslogtreecommitdiff
path: root/libopie2
Unidiff
Diffstat (limited to 'libopie2') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/osmartpointer.h (renamed from libopie2/opiecore/osmart_pointer.h)27
1 files changed, 14 insertions, 13 deletions
diff --git a/libopie2/opiecore/osmart_pointer.h b/libopie2/opiecore/osmartpointer.h
index 2a2518f..9000e71 100644
--- a/libopie2/opiecore/osmart_pointer.h
+++ b/libopie2/opiecore/osmartpointer.h
@@ -31,7 +31,7 @@ _;:, .> :=|. This program is free software; you can
31 31
32#ifndef _osmart_pointer_h 32#ifndef _OSmartPointer_h
33#define _osmart_pointer_h 33#define _OSmartPointer_h
34 34
35/*! 35/*!
36 * \file osmart_pointer.h 36 * \file OSmartPointer.h
37 * \brief smart pointer and reference counter 37 * \brief smart pointer and reference counter
@@ -44,3 +44,3 @@ namespace Opie {
44//! simple reference counter class 44//! simple reference counter class
45class oref_count { 45class ORefCount {
46protected: 46protected:
@@ -50,5 +50,5 @@ public:
50 //! first reference must be added after "new" via Pointer() 50 //! first reference must be added after "new" via Pointer()
51 oref_count() : m_RefCount(0) 51 ORefCount() : m_RefCount(0)
52 {} 52 {}
53 virtual ~oref_count() {} 53 virtual ~ORefCount() {}
54 //! add a reference 54 //! add a reference
@@ -66,3 +66,3 @@ public:
66//! reference counting wrapper class 66//! reference counting wrapper class
67template<class T> class osmart_pointer { 67template<class T> class OSmartPointer {
68 //! pointer to object 68 //! pointer to object
@@ -76,3 +76,3 @@ public:
76 //! standart constructor 76 //! standart constructor
77 osmart_pointer() { ptr = NULL; } 77 OSmartPointer() { ptr = NULL; }
78 //! standart destructor 78 //! standart destructor
@@ -82,3 +82,3 @@ public:
82 */ 82 */
83 ~osmart_pointer() 83 ~OSmartPointer()
84 { 84 {
@@ -91,8 +91,8 @@ public:
91 //! construction 91 //! construction
92 osmart_pointer(T* t) { if (ptr = t) ptr->Incr(); } 92 OSmartPointer(T* t) { if (ptr = t) ptr->Incr(); }
93 //! Pointer copy 93 //! Pointer copy
94 osmart_pointer(const osmart_pointer<T>& p) 94 OSmartPointer(const OSmartPointer<T>& p)
95 { if (ptr = p.ptr) ptr->Incr(); } 95 { if (ptr = p.ptr) ptr->Incr(); }
96 //! pointer copy by assignment 96 //! pointer copy by assignment
97 osmart_pointer<T>& operator= (const osmart_pointer<T>& p) 97 OSmartPointer<T>& operator= (const OSmartPointer<T>& p)
98 { 98 {
@@ -106,3 +106,3 @@ public:
106 } 106 }
107 osmart_pointer<T>& operator= (T*p) 107 OSmartPointer<T>& operator= (T*p)
108 { 108 {
@@ -144 +144,2 @@ public:
144#endif 144#endif
145