2011-05-03 Alpha Lam <hclam@chromium.org>
authorhclam@chromium.org <hclam@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 May 2011 05:30:54 +0000 (05:30 +0000)
committerhclam@chromium.org <hclam@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 4 May 2011 05:30:54 +0000 (05:30 +0000)
        Not reviewed. Build fix.

        More places from 0 to nullptr.

        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::precompileScript):
        * platform/graphics/chromium/LayerTilerChromium.cpp:
        (WebCore::LayerTilerChromium::create):
        * platform/graphics/gpu/BicubicShader.cpp:
        (WebCore::BicubicShader::create):
        * platform/graphics/gpu/ConvolutionShader.cpp:
        (WebCore::ConvolutionShader::create):
        * platform/graphics/gpu/LoopBlinnSolidFillShader.cpp:
        (WebCore::LoopBlinnSolidFillShader::create):
        * platform/graphics/gpu/SolidFillShader.cpp:
        (WebCore::SolidFillShader::create):
        * platform/graphics/gpu/TexShader.cpp:
        (WebCore::TexShader::create):
        * platform/graphics/skia/PlatformContextSkia.cpp:
        (WebCore::PlatformContextSkia::~PlatformContextSkia):
        * platform/leveldb/LevelDBDatabase.cpp:
        (WebCore::LevelDBDatabase::createIterator):
        * platform/text/LocalizedNumberICU.cpp:
        (WebCore::createFormatterForCurrentLocale):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@85716 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/bindings/v8/V8Proxy.cpp
Source/WebCore/platform/graphics/chromium/LayerTilerChromium.cpp
Source/WebCore/platform/graphics/gpu/BicubicShader.cpp
Source/WebCore/platform/graphics/gpu/ConvolutionShader.cpp
Source/WebCore/platform/graphics/gpu/LoopBlinnSolidFillShader.cpp
Source/WebCore/platform/graphics/gpu/SolidFillShader.cpp
Source/WebCore/platform/graphics/gpu/TexShader.cpp
Source/WebCore/platform/graphics/skia/PlatformContextSkia.cpp
Source/WebCore/platform/leveldb/LevelDBDatabase.cpp
Source/WebCore/platform/text/LocalizedNumberICU.cpp

index 3caf732..798d065 100644 (file)
@@ -2,6 +2,33 @@
 
         Not reviewed. Build fix.
 
+        More places from 0 to nullptr.
+
+        * bindings/v8/V8Proxy.cpp:
+        (WebCore::V8Proxy::precompileScript):
+        * platform/graphics/chromium/LayerTilerChromium.cpp:
+        (WebCore::LayerTilerChromium::create):
+        * platform/graphics/gpu/BicubicShader.cpp:
+        (WebCore::BicubicShader::create):
+        * platform/graphics/gpu/ConvolutionShader.cpp:
+        (WebCore::ConvolutionShader::create):
+        * platform/graphics/gpu/LoopBlinnSolidFillShader.cpp:
+        (WebCore::LoopBlinnSolidFillShader::create):
+        * platform/graphics/gpu/SolidFillShader.cpp:
+        (WebCore::SolidFillShader::create):
+        * platform/graphics/gpu/TexShader.cpp:
+        (WebCore::TexShader::create):
+        * platform/graphics/skia/PlatformContextSkia.cpp:
+        (WebCore::PlatformContextSkia::~PlatformContextSkia):
+        * platform/leveldb/LevelDBDatabase.cpp:
+        (WebCore::LevelDBDatabase::createIterator):
+        * platform/text/LocalizedNumberICU.cpp:
+        (WebCore::createFormatterForCurrentLocale):
+
+2011-05-03  Alpha Lam  <hclam@chromium.org>
+
+        Not reviewed. Build fix.
+
         Using nullptr instead of 0. This makes visual studio happy.
 
         * storage/IDBTransactionBackendInterface.h:
index 1ee3889..f4795fb 100644 (file)
@@ -317,7 +317,7 @@ PassOwnPtr<v8::ScriptData> V8Proxy::precompileScript(v8::Handle<v8::String> code
     static const int minPreparseLength = 1024;
 
     if (!cachedScript || code->Length() < minPreparseLength)
-        return 0;
+        return nullptr;
 
     CachedMetadata* cachedMetadata = cachedScript->cachedMetadata(dataTypeID);
     if (cachedMetadata)
index c78c137..a2cbe7e 100644 (file)
@@ -45,7 +45,7 @@ namespace WebCore {
 PassOwnPtr<LayerTilerChromium> LayerTilerChromium::create(LayerRendererChromium* layerRenderer, const IntSize& tileSize, BorderTexelOption border)
 {
     if (!layerRenderer || tileSize.isEmpty())
-        return 0;
+        return nullptr;
 
     return adoptPtr(new LayerTilerChromium(layerRenderer, tileSize, border));
 }
index f6f428d..a619651 100644 (file)
@@ -104,7 +104,7 @@ PassOwnPtr<BicubicShader> BicubicShader::create(GraphicsContext3D* context)
 
     unsigned program = loadProgram(context, vertexShaderSource, fragmentShaderSource);
     if (!program)
-        return 0;
+        return nullptr;
 
     return new BicubicShader(context, program);
 }
index b11d966..3d3ddc6 100644 (file)
@@ -92,7 +92,7 @@ PassOwnPtr<ConvolutionShader> ConvolutionShader::create(GraphicsContext3D* conte
 
     unsigned program = loadProgram(context, vertexShaderSource, fragmentShaderSource);
     if (!program)
-        return 0;
+        return nullptr;
     return new ConvolutionShader(context, program, kernelWidth);
 }
 
index 57b728f..033ac16 100644 (file)
@@ -41,7 +41,7 @@ PassOwnPtr<LoopBlinnSolidFillShader> LoopBlinnSolidFillShader::create(GraphicsCo
                                    generateVertex(type, SolidFill),
                                    generateFragment(type, SolidFill, antialiasType));
     if (!program)
-        return 0;
+        return nullptr;
     return new LoopBlinnSolidFillShader(context, program);
 }
 
index 0a6e084..9ed0626 100644 (file)
@@ -53,7 +53,7 @@ PassOwnPtr<SolidFillShader> SolidFillShader::create(GraphicsContext3D* context)
                                    generateVertex(Shader::TwoDimensional, Shader::SolidFill),
                                    generateFragment(Shader::TwoDimensional, Shader::SolidFill, Shader::NotAntialiased));
     if (!program)
-        return 0;
+        return nullptr;
     return new SolidFillShader(context, program);
 }
 
index ac141a5..20f5754 100644 (file)
@@ -54,7 +54,7 @@ PassOwnPtr<TexShader> TexShader::create(GraphicsContext3D* context)
                                    generateVertex(Shader::TwoDimensional, Shader::TextureFill),
                                    generateFragment(Shader::TwoDimensional, Shader::TextureFill, Shader::NotAntialiased));
     if (!program)
-        return 0;
+        return nullptr;
     return new TexShader(context, program);
 }
 
index 6b060f9..ba7b108 100644 (file)
@@ -231,7 +231,7 @@ PlatformContextSkia::~PlatformContextSkia()
             context->makeContextCurrent();
             context->grContext()->flush(0);
         }
-        m_gpuCanvas->drawingBuffer()->setWillPublishCallback(0);
+        m_gpuCanvas->drawingBuffer()->setWillPublishCallback(nullptr);
     }
 #endif
 }
index f8d44aa..d56f26c 100644 (file)
@@ -145,7 +145,7 @@ PassOwnPtr<LevelDBIterator> LevelDBDatabase::createIterator()
 {
     OwnPtr<leveldb::Iterator> i = adoptPtr(m_db->NewIterator(leveldb::ReadOptions()));
     if (!i) // FIXME: Double check if we actually need to check this.
-        return 0;
+        return nullptr;
     return adoptPtr(new LevelDBIterator(i.release()));
 }
 
index da16262..d3843a8 100644 (file)
@@ -46,7 +46,7 @@ static PassOwnPtr<NumberFormat> createFormatterForCurrentLocale()
 {
     UErrorCode status = U_ZERO_ERROR;
     OwnPtr<NumberFormat> formatter = adoptPtr(NumberFormat::createInstance(status));
-    return U_SUCCESS(status) ? formatter.release() : 0;
+    return U_SUCCESS(status) ? formatter.release() : nullptr;
 }
 
 // This might return 0.