X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/2d39b0e377c0896910ee49ae70082ba665faf986..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/runtime/DataView.cpp diff --git a/runtime/DataView.cpp b/runtime/DataView.cpp index 0c83d6e..78e743f 100644 --- a/runtime/DataView.cpp +++ b/runtime/DataView.cpp @@ -37,13 +37,13 @@ DataView::DataView(PassRefPtr buffer, unsigned byteOffset, unsigned { } -PassRefPtr DataView::create( +Ref DataView::create( PassRefPtr buffer, unsigned byteOffset, unsigned byteLength) { - return adoptRef(new DataView(buffer, byteOffset, byteLength)); + return adoptRef(*new DataView(buffer, byteOffset, byteLength)); } -PassRefPtr DataView::create(PassRefPtr passedBuffer) +Ref DataView::create(PassRefPtr passedBuffer) { RefPtr buffer = passedBuffer; return create(buffer, 0, buffer->byteLength());