Commit 94740e35 authored by yutak's avatar yutak Committed by Commit bot

Oilpan: Remove "this" argument of registerPreFinalizer() from documentation.

BUG=544756
R=haraken@chromium.org, oilpan-reviews@chromium.org, sigbjornf@opera.com

Review URL: https://codereview.chromium.org/1471193003

Cr-Commit-Position: refs/heads/master@{#361301}
parent f0408c3a
...@@ -99,7 +99,7 @@ with a destructor. ...@@ -99,7 +99,7 @@ with a destructor.
A pre-finalizer must have the following function signature: `void preFinalizer()`. You can change the function name. A pre-finalizer must have the following function signature: `void preFinalizer()`. You can change the function name.
A pre-finalizer must be registered in the constructor by using the following statement: A pre-finalizer must be registered in the constructor by using the following statement:
"`ThreadState::current()->registerPreFinalizer(this, preFinalizerName);`". "`ThreadState::current()->registerPreFinalizer(preFinalizerName);`".
```c++ ```c++
class YourClass : public GarbageCollectedFinalized<YourClass> { class YourClass : public GarbageCollectedFinalized<YourClass> {
...@@ -107,7 +107,7 @@ class YourClass : public GarbageCollectedFinalized<YourClass> { ...@@ -107,7 +107,7 @@ class YourClass : public GarbageCollectedFinalized<YourClass> {
public: public:
YourClass() YourClass()
{ {
ThreadState::current()->registerPreFinalizer(this, dispose); ThreadState::current()->registerPreFinalizer(dispose);
} }
void dispose() void dispose()
{ {
......
...@@ -92,7 +92,7 @@ class Visitor; ...@@ -92,7 +92,7 @@ class Visitor;
// public: // public:
// Foo() // Foo()
// { // {
// ThreadState::current()->registerPreFinalizer(this, dispose); // ThreadState::current()->registerPreFinalizer(dispose);
// } // }
// private: // private:
// void dispose() // void dispose()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment