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+

Daniel Bates
Reported 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.
Attachments
Patch (1.68 KB, patch)
2014-06-30 16:31 PDT, Daniel Bates
no flags
Patch (2.12 KB, patch)
2014-06-30 16:54 PDT, Daniel Bates
darin: review+
Daniel Bates
Comment 1 2014-06-30 16:31:25 PDT
Darin Adler
Comment 2 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.
Daniel Bates
Comment 3 2014-06-30 16:54:25 PDT
Daniel Bates
Comment 4 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.
Daniel Bates
Comment 5 2014-06-30 17:01:05 PDT
Note You need to log in before you can comment on or make changes to this bug.