Introduce WTF::createOwned
Created attachment 211114 [details] Patch
Comment on attachment 211114 [details] Patch This will be even nicer with variadic template support eventually :)
Attachment 211114 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/FilePrintStream.cpp', u'Source/WTF/wtf/FilePrintStream.h', u'Source/WTF/wtf/HashTable.h', u'Source/WTF/wtf/ListHashSet.h', u'Source/WTF/wtf/OwnPtr.h', u'Source/WTF/wtf/Threading.cpp', u'Source/WTF/wtf/ThreadingPthreads.cpp', u'Source/WTF/wtf/unicode/Collator.h', u'Source/WTF/wtf/unicode/CollatorDefault.cpp', u'Source/WTF/wtf/unicode/icu/CollatorICU.cpp']" exit_code: 1 Source/WTF/wtf/unicode/icu/CollatorICU.cpp:61: The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5] Source/WTF/wtf/FilePrintStream.h:31: Alphabetical sorting problem. [build/include_order] [4] Source/WTF/wtf/unicode/CollatorDefault.cpp:48: The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5] Source/WTF/wtf/FilePrintStream.cpp:44: The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5] Source/WTF/wtf/OwnPtr.h:92: Missing spaces around && [whitespace/operators] [3] Source/WTF/wtf/OwnPtr.h:93: Missing spaces around && [whitespace/operators] [3] Total errors found: 6 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 211117 [details] Patch
Attachment 211117 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/FilePrintStream.cpp', u'Source/WTF/wtf/FilePrintStream.h', u'Source/WTF/wtf/HashTable.h', u'Source/WTF/wtf/ListHashSet.h', u'Source/WTF/wtf/OwnPtr.h', u'Source/WTF/wtf/Threading.cpp', u'Source/WTF/wtf/ThreadingPthreads.cpp', u'Source/WTF/wtf/unicode/Collator.h', u'Source/WTF/wtf/unicode/CollatorDefault.cpp', u'Source/WTF/wtf/unicode/icu/CollatorICU.cpp']" exit_code: 1 Source/WTF/wtf/unicode/icu/CollatorICU.cpp:61: The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5] Source/WTF/wtf/FilePrintStream.h:31: Alphabetical sorting problem. [build/include_order] [4] Source/WTF/wtf/unicode/CollatorDefault.cpp:48: The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5] Source/WTF/wtf/FilePrintStream.cpp:44: The return type should use PassOwnPtr instead of OwnPtr. [readability/pass_ptr] [5] Source/WTF/wtf/OwnPtr.h:92: Missing spaces around && [whitespace/operators] [3] Source/WTF/wtf/OwnPtr.h:93: Missing spaces around && [whitespace/operators] [3] Total errors found: 6 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 211117 [details] Patch Clearing flags on attachment: 211117 Committed r155407: <http://trac.webkit.org/changeset/155407>
All reviewed patches have been landed. Closing bug.