Switch to unified view
a/src/utils/refcntr.h | b/src/utils/refcntr.h | ||
---|---|---|---|
... |
... |
||
7 | int *pcount; |
7 | int *pcount; |
8 | public: |
8 | public: |
9 | RefCntr() |
9 | RefCntr() |
10 | : rep(0), pcount(0) |
10 | : rep(0), pcount(0) |
11 | {} |
11 | {} |
12 | RefCntr(X *pp) |
12 | explicit RefCntr(X *pp)
|
13 | : rep(pp), pcount(new int(1)) |
13 | : rep(pp), pcount(new int(1)) |
14 | {} |
14 | {} |
15 | RefCntr(const RefCntr &r) |
15 | RefCntr(const RefCntr &r) |
16 | : rep(r.rep), pcount(r.pcount) |
16 | : rep(r.rep), pcount(r.pcount) |
17 | { |
17 | { |