Ignore:
Timestamp:
Sep 17, 2013, 5:15:13 PM (12 years ago)
Author:
[email protected]
Message:

Replace use of OwnArrayPtr<Foo> with std::unique_ptr<Foo[]> in WebCore
https://bugs.webkit.org/show_bug.cgi?id=121527

Reviewed by Anders Carlsson.

  • Modules/webaudio/AudioBufferSourceNode.cpp:

(WebCore::AudioBufferSourceNode::setBuffer):

  • Modules/webaudio/AudioBufferSourceNode.h:
  • Modules/webaudio/OscillatorNode.h:
  • css/CSSParser.cpp:

(WebCore::CSSParser::setupParser):
(WebCore::CSSParser::currentCharacter16):

  • css/CSSParser.h:
  • html/HTMLAreaElement.h:
  • html/HTMLFrameSetElement.h:
  • html/canvas/WebGLRenderingContext.cpp:

(WebCore::WebGLRenderingContext::copyTexSubImage2D):
(WebCore::WebGLRenderingContext::simulateVertexAttrib0):
(WebCore::WebGLRenderingContext::LRUImageBufferCache::LRUImageBufferCache):

  • html/canvas/WebGLRenderingContext.h:
  • platform/ScrollAnimatorNone.cpp:
  • platform/audio/DynamicsCompressor.cpp:

(WebCore::DynamicsCompressor::setNumberOfChannels):

  • platform/audio/DynamicsCompressor.h:
  • platform/audio/FFTFrame.h:
  • platform/audio/gstreamer/FFTFrameGStreamer.cpp:

(WebCore::FFTFrame::FFTFrame):

  • platform/efl/ScrollbarEfl.cpp:

(ScrollbarEfl::updateThumbPositionAndProportion):

  • platform/graphics/ANGLEWebKitBridge.cpp:

(WebCore::ANGLEWebKitBridge::compileShaderSource):

  • platform/graphics/GraphicsContext3D.cpp:

(WebCore::GraphicsContext3D::texImage2DResourceSafe):

  • platform/graphics/GraphicsContext3D.h:
  • platform/graphics/GraphicsContext3DPrivate.cpp:

(WebCore::GraphicsContext3DPrivate::paintToTextureMapper):

  • platform/graphics/blackberry/LayerTexture.cpp:
  • platform/graphics/ca/win/CACFLayerTreeHost.cpp:

(WebCore::getDirtyRects):

  • platform/graphics/cg/GraphicsContext3DCG.cpp:

(WebCore::GraphicsContext3D::ImageExtractor::extractImage):

  • platform/graphics/cg/GraphicsContextCG.cpp:
  • platform/graphics/cg/ImageBufferCG.cpp:
  • platform/graphics/gpu/Texture.cpp:

(WebCore::Texture::updateSubRect):

  • platform/graphics/harfbuzz/HarfBuzzShaper.cpp:

(WebCore::HarfBuzzShaper::HarfBuzzShaper):
(WebCore::HarfBuzzShaper::setNormalizedBuffer):

  • platform/graphics/harfbuzz/HarfBuzzShaper.h:
  • platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp:

(WebCore::GraphicsContext3D::paintRenderingResultsToCanvas):
(WebCore::GraphicsContext3D::compileShader):
(WebCore::GraphicsContext3D::getActiveAttrib):
(WebCore::GraphicsContext3D::getActiveUniform):
(WebCore::GraphicsContext3D::getProgramInfoLog):
(WebCore::GraphicsContext3D::getShaderInfoLog):

  • platform/graphics/opentype/OpenTypeSanitizer.cpp:
  • platform/graphics/texmap/TextureMapperGL.cpp:
  • platform/graphics/wince/SharedBitmap.cpp:

(WebCore::SharedBitmap::SharedBitmap):
(WebCore::SharedBitmap::to16bit):

  • platform/graphics/wince/SharedBitmap.h:
  • platform/image-decoders/blackberry/JPEGImageDecoder.cpp:

(WebCore::ImageReader::decode):

  • platform/image-decoders/png/PNGImageDecoder.cpp:

(WebCore::PNGImageReader::createRowBuffer):

  • platform/win/ContextMenuWin.cpp:

(WebCore::ContextMenu::getContextMenuItems):

  • platform/win/LoggingWin.cpp:

(WebCore::logLevelString):

  • plugins/PluginPackage.cpp:
  • plugins/blackberry/PluginViewBlackBerry.cpp:

(WebCore::PluginView::handleTouchEvent):

  • plugins/win/PluginPackageWin.cpp:

(WebCore::PluginPackage::fetchInfo):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/css/CSSParser.cpp

    r155870 r156015  
    9090#include <wtf/BitArray.h>
    9191#include <wtf/HexNumber.h>
     92#include <wtf/StdLibExtras.h>
    9293#include <wtf/dtoa.h>
    9394#include <wtf/text/StringBuffer.h>
     
    407408
    408409    if (!stringLength || string.is8Bit()) {
    409         m_dataStart8 = adoptArrayPtr(new LChar[length]);
     410        m_dataStart8 = std::make_unique<LChar[]>(length);
    410411        for (unsigned i = 0; i < m_parsedTextPrefixLength; i++)
    411412            m_dataStart8[i] = prefix[i];
     
    429430    }
    430431
    431     m_dataStart16 = adoptArrayPtr(new UChar[length]);
     432    m_dataStart16 = std::make_unique<UChar[]>(length);
    432433    for (unsigned i = 0; i < m_parsedTextPrefixLength; i++)
    433434        m_dataStart16[i] = prefix[i];
     
    1018410185{
    1018510186    if (!m_currentCharacter16) {
    10186         m_dataStart16 = adoptArrayPtr(new UChar[m_length]);
     10187        m_dataStart16 = std::make_unique<UChar[]>(m_length);
    1018710188        m_currentCharacter16 = m_dataStart16.get();
    1018810189    }
Note: See TracChangeset for help on using the changeset viewer.