This is pointlessly generic.
Created attachment 261425 [details] patch
Comment on attachment 261425 [details] patch Nice. Next make it iterative? :)
http://trac.webkit.org/changeset/189945
Comment on attachment 261425 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=261425&action=review > Source/WebCore/html/track/WebVTTParser.cpp:544 > + auto child = Text::create(document, m_token.characters()); > + m_currentNode->parserAppendChild(WTF::move(child)); If we did it on one line without the local variable then we wouldn’t need to call WTF::move. > Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp:1031 > + auto newNode = CDATASection::create(m_currentNode->document(), toString(s, len)); > + m_currentNode->parserAppendChild(WTF::move(newNode)); If we did it on one line without the local variable then we wouldn’t need to call WTF::move. > Source/WebCore/xml/parser/XMLDocumentParserLibxml2.cpp:1047 > + auto newNode = Comment::create(m_currentNode->document(), toString(s)); > + m_currentNode->parserAppendChild(WTF::move(newNode)); If we did it on one line without the local variable then we wouldn’t need to call WTF::move.