Bug 147863

Summary: Ref-ify SharedBuffer
Product: WebKit Reporter: Andreas Kling <kling>
Component: WebCore Misc.Assignee: Andreas Kling <kling>
Status: RESOLVED INVALID    
Severity: Normal CC: commit-queue, kling
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch for EWS
none
Patch for EWS 2 none

Description Andreas Kling 2015-08-10 19:21:36 PDT
SharedBuffer's create() functions should return Refs.
Also, its internal DataBuffer should be stored in a Ref.
Comment 1 Andreas Kling 2015-08-10 19:23:41 PDT
Created attachment 258685 [details]
Patch for EWS
Comment 2 WebKit Commit Bot 2015-08-10 19:26:29 PDT
Attachment 258685 [details] did not pass style-queue:


ERROR: Source/WebCore/platform/SharedBuffer.h:62:  The parameter name "vector" adds no information, so it should be removed.  [readability/parameter_name] [5]
ERROR: Source/WebCore/platform/SharedBuffer.h:68:  The parameter name "data" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 2 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Andreas Kling 2015-08-10 19:37:26 PDT
Created attachment 258688 [details]
Patch for EWS 2
Comment 4 Andreas Kling 2017-03-14 13:07:07 PDT
Someone else made these changes somewhere in the last year.