qt4 compiles and sort of works

This commit is contained in:
dockes
2006-12-04 09:56:27 +00:00
parent f672e9de99
commit 5c8d9bc272
12 changed files with 33 additions and 30 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ template <class X> class RefCntr {
int *pcount;
public:
X * operator->() {return rep;}
RefCntr() : rep(0), pcount(0) {}
RefCntr() : rep(0), pcount(new int(1)) {}
RefCntr(X *pp) : rep(pp), pcount(new int(1)) {}
RefCntr(const RefCntr &r) :rep(r.rep), pcount(r.pcount) { (*pcount)++;}
RefCntr& operator=(const RefCntr& r) {