diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:57:13 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:57:13 +0000 |
commit | 500827ed367c8ac277abbd582d389f6738905a09 (patch) | |
tree | 858f2638647a3ae5ad14006f2c3be28bd0456811 /apt-pkg/contrib/sptr.h | |
parent | 678bc33eaf95356d1b63090d220b65162478b89a (diff) |
Pedantic fixes
Author: jgg
Date: 2001-03-11 07:22:19 GMT
Pedantic fixes
Diffstat (limited to 'apt-pkg/contrib/sptr.h')
-rw-r--r-- | apt-pkg/contrib/sptr.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apt-pkg/contrib/sptr.h b/apt-pkg/contrib/sptr.h index a9347edf9..9df0e44a7 100644 --- a/apt-pkg/contrib/sptr.h +++ b/apt-pkg/contrib/sptr.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: sptr.h,v 1.2 2001/02/20 07:03:17 jgg Exp $ +// $Id: sptr.h,v 1.3 2001/03/11 07:22:19 jgg Exp $ /* ###################################################################### Trivial non-ref counted 'smart pointer' @@ -48,19 +48,19 @@ class SPtrArray public: T *Ptr; - inline T &operator *() {return *Ptr;}; + //inline T &operator *() {return *Ptr;}; inline operator T *() {return Ptr;}; inline operator void *() {return Ptr;}; inline T *UnGuard() {T *Tmp = Ptr; Ptr = 0; return Tmp;}; - inline T &operator [](signed long I) {return Ptr[I];}; + //inline T &operator [](signed long I) {return Ptr[I];}; inline void operator =(T *N) {Ptr = N;}; inline bool operator ==(T *lhs) const {return Ptr == lhs;}; inline bool operator !=(T *lhs) const {return Ptr != lhs;}; - inline T*Get() {return Ptr;}; + inline T *Get() {return Ptr;}; inline SPtrArray(T *Ptr) : Ptr(Ptr) {}; inline SPtrArray() : Ptr(0) {}; - inline ~SPtrArray() {delete []Ptr;}; + inline ~SPtrArray() {delete [] Ptr;}; }; #endif |