diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-02-03 11:24:03 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-02-03 11:24:03 -0500 |
commit | 85bc028185830fb534c10c244d5f39fcfe8c4da6 (patch) | |
tree | 59a830bc1aa9e0623cb997f20437925c300aff06 /base/refcnt.hh | |
parent | 5164de4a03422090b253404a11b069d7d588c55e (diff) | |
parent | 368e6e3e570430b207b0194290242a2f98e565ca (diff) | |
download | gem5-85bc028185830fb534c10c244d5f39fcfe8c4da6.tar.xz |
merge
--HG--
extra : convert_revision : 47425264e672f727cbb13aa7b9bb2a67790b25e8
Diffstat (limited to 'base/refcnt.hh')
-rw-r--r-- | base/refcnt.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/refcnt.hh b/base/refcnt.hh index 5bc62ae23..f3e0e4114 100644 --- a/base/refcnt.hh +++ b/base/refcnt.hh @@ -64,7 +64,7 @@ class RefCountingPtr public: RefCountingPtr() : data(NULL) {} RefCountingPtr(T *data) { copy(data); } - RefCountingPtr(const RefCountingPtr& r) { copy(r.data); } + RefCountingPtr(const RefCountingPtr &r) { copy(r.data); } ~RefCountingPtr() { del(); } T *operator->() { return data; } @@ -83,7 +83,7 @@ class RefCountingPtr return *this; } - RefCountingPtr &operator=(const RefCountingPtr& r) { + RefCountingPtr &operator=(const RefCountingPtr &r) { if (data != r.data) { del(); copy(r.data); |