[Webkit-unassigned] [Bug 25495] Implement PassOwnPtr and replace uses of std::auto_ptr
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon May 4 11:54:01 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=25495
------- Comment #1 from ddkilzer at webkit.org 2009-05-04 11:54 PDT -------
(In reply to comment #0)
> 2. When you fix the above code, it requires you do the following *and* include
> the whole SomeClass.h header instead of just using a class predeclaration:
>
> #include "SomeClass.h"
> [...]
> virtual auto_ptr<SomeClass> createSomeClass() { return
> auto_ptr<SomeClass>(); }
After implementing PassOwnPtr, I realized that you still must #include
"SomeClass.h" anyway, but you can just return 0:
#include "SomeClass.h"
[...]
virtual auto_ptr<SomeClass> createSomeClass() { return 0; }
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list