Summary: | [Chromium] Disallow assignment of WebVector<T> to WebVector<T> | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> | ||||||
Component: | WebCore Misc. | Assignee: | Yury Semikhatsky <yurys> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | dglazkov, eric, fishd, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Yury Semikhatsky
2009-12-10 00:28:52 PST
Created attachment 44598 [details]
patch
Not sure where I could place unit test for this.
style-queue ran check-webkit-style on attachment 44598 [details] without any errors.
Comment on attachment 44598 [details]
patch
We have wtf/Noncopyable for this sort of thing. But that can't be used here, so this is probably fine.
Comment on attachment 44598 [details]
patch
Actually, the intent was to allow copying just as you can copy a std::vector or a WTF::Vector. I think we should implement this assignment operator.
Created attachment 44797 [details]
patch addressing reviewers comments
style-queue ran check-webkit-style on attachment 44797 [details] without any errors.
(In reply to comment #4) > (From update of attachment 44598 [details]) > Actually, the intent was to allow copying just as you can copy a std::vector or > a WTF::Vector. I think we should implement this assignment operator. Done. I've added "non-template" operator=. Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebKit/chromium/ChangeLog M WebKit/chromium/public/WebVector.h Committed r52255 |