Bug 134468

Summary: Make TransformIterator::TransformIterator() take rvalue references
Product: WebKit Reporter: Daniel Bates <dbates>
Component: Web Template FrameworkAssignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, benjamin, bunhere, cdumez, cmarcelo, commit-queue, darin, gyuyoung.kim, sergio
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch darin: review+

Description Daniel Bates 2014-06-30 16:30:35 PDT
We should add a constructor for TransformIterator::TransformIterator() that takes rvalue references so that we can actually use move semantics to move its passed arguments. Currently TransformIterator::TransformIterator() always copies its arguments.
Comment 1 Daniel Bates 2014-06-30 16:31:25 PDT
Created attachment 234113 [details]
Patch
Comment 2 Darin Adler 2014-06-30 16:34:26 PDT
Comment on attachment 234113 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=234113&action=review

> Source/WTF/ChangeLog:3
> +        Actually use move semantics when calling TransformIterator::TransformIterator() with rvalue references

I don’t understand the point of the word “actually” here.
Comment 3 Daniel Bates 2014-06-30 16:54:25 PDT
Created attachment 234120 [details]
Patch
Comment 4 Daniel Bates 2014-06-30 16:58:41 PDT
(In reply to comment #2)
> (From update of attachment 234113 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=234113&action=review
> 
> > Source/WTF/ChangeLog:3
> > +        Actually use move semantics when calling TransformIterator::TransformIterator() with rvalue references
> 
> I don’t understand the point of the word “actually” here.

As we discussed in-person today (06/30), the purpose of this patch is to support a constructor that takes rvalue-references. It's actually sufficient to only have such a constructor. I updated the title of this bug and attached an updated patch.
Comment 5 Daniel Bates 2014-06-30 17:01:05 PDT
Committed r170615: <http://trac.webkit.org/changeset/170615>