~ubuntu-branches/ubuntu/precise/p7zip/precise-security

« back to all changes in this revision

Viewing changes to CPP/Common/AutoPtr.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
public:
10
10
  CMyAutoPtr(T *p = 0) : _p(p) {}
11
11
  CMyAutoPtr(CMyAutoPtr<T>& p): _p(p.release()) {}
12
 
  CMyAutoPtr<T>& operator=(CMyAutoPtr<T>& p) 
 
12
  CMyAutoPtr<T>& operator=(CMyAutoPtr<T>& p)
13
13
  {
14
14
    reset(p.release());
15
15
    return (*this);