diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 20:48:03 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-15 20:48:03 +0000 |
commit | 5fb6e15d7b52dc94059b14e3a73c8700257ed254 (patch) | |
tree | b02fb314d873381b14fd32cf395e6bcedd26010d /base/weak_ptr.h | |
parent | 60f143931b79fd3fbcd28ad5125d0bfcce36c1ca (diff) | |
download | chromium_src-5fb6e15d7b52dc94059b14e3a73c8700257ed254.zip chromium_src-5fb6e15d7b52dc94059b14e3a73c8700257ed254.tar.gz chromium_src-5fb6e15d7b52dc94059b14e3a73c8700257ed254.tar.bz2 |
Fixing the example for weak_ptr so it is correct
BUG=NONE
TEST=NONE
Patch by dhg@chromium.org
Original review: http://codereview.chromium.org/476010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/weak_ptr.h')
-rw-r--r-- | base/weak_ptr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/weak_ptr.h b/base/weak_ptr.h index 98b5870..1bc963e 100644 --- a/base/weak_ptr.h +++ b/base/weak_ptr.h @@ -16,9 +16,9 @@ // // EXAMPLE: // -// class Controller : public SupportsWeakPtr { +// class Controller : public SupportsWeakPtr<Controller> { // public: -// void SpawnWorker() { Worker::StartNew(GetWeakPtr()); } +// void SpawnWorker() { Worker::StartNew(AsWeakPtr()); } // void WorkComplete(const Result& result) { ... } // }; // |