summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorcraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 15:45:05 +0000
committercraig.schlenter@chromium.org <craig.schlenter@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-27 15:45:05 +0000
commit5d7bc9ee7ca6ef8c488683368c95416e31787ae8 (patch)
tree45099548b4c8151b1710515e3ba3482cb84e1b30 /webkit
parent5fe9cb560087823043edf4ef43927427aacad54c (diff)
downloadchromium_src-5d7bc9ee7ca6ef8c488683368c95416e31787ae8.zip
chromium_src-5d7bc9ee7ca6ef8c488683368c95416e31787ae8.tar.gz
chromium_src-5d7bc9ee7ca6ef8c488683368c95416e31787ae8.tar.bz2
Linux: Fix some NULL versus 0 issues to appease gcc-4.5.
Patch is 99% the same as spotrh's version (thanks spot!) except for the use of gfx::kNullPluginWindow in this version. BUG=49533 Review URL: http://codereview.chromium.org/3014034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/plugins/pepper_buffer.cc4
-rw-r--r--webkit/glue/plugins/pepper_device_context_2d.cc4
-rw-r--r--webkit/glue/plugins/pepper_font.cc4
-rw-r--r--webkit/glue/plugins/pepper_image_data.cc4
-rw-r--r--webkit/glue/plugins/pepper_scrollbar.cc2
5 files changed, 9 insertions, 9 deletions
diff --git a/webkit/glue/plugins/pepper_buffer.cc b/webkit/glue/plugins/pepper_buffer.cc
index 1c0bdd8..7cd0195 100644
--- a/webkit/glue/plugins/pepper_buffer.cc
+++ b/webkit/glue/plugins/pepper_buffer.cc
@@ -22,11 +22,11 @@ namespace {
PP_Resource Create(PP_Module module_id, int32_t size) {
PluginModule* module = PluginModule::FromPPModule(module_id);
if (!module)
- return NULL;
+ return 0;
scoped_refptr<Buffer> buffer(new Buffer(module));
if (!buffer->Init(size))
- return NULL;
+ return 0;
return buffer->GetReference();
}
diff --git a/webkit/glue/plugins/pepper_device_context_2d.cc b/webkit/glue/plugins/pepper_device_context_2d.cc
index 45ed9ee..8407da3 100644
--- a/webkit/glue/plugins/pepper_device_context_2d.cc
+++ b/webkit/glue/plugins/pepper_device_context_2d.cc
@@ -68,11 +68,11 @@ PP_Resource Create(PP_Module module_id,
bool is_always_opaque) {
PluginModule* module = PluginModule::FromPPModule(module_id);
if (!module)
- return NULL;
+ return 0;
scoped_refptr<DeviceContext2D> context(new DeviceContext2D(module));
if (!context->Init(size->width, size->height, is_always_opaque))
- return NULL;
+ return 0;
return context->GetReference();
}
diff --git a/webkit/glue/plugins/pepper_font.cc b/webkit/glue/plugins/pepper_font.cc
index af4cb81d..378842a 100644
--- a/webkit/glue/plugins/pepper_font.cc
+++ b/webkit/glue/plugins/pepper_font.cc
@@ -24,14 +24,14 @@ PP_Resource MatchFontWithFallback(PP_Module module_id,
#if defined(OS_LINUX)
PluginModule* module = PluginModule::FromPPModule(module_id);
if (!module)
- return NULL;
+ return 0;
int fd = webkit_glue::MatchFontWithFallback(description->face,
description->weight >= 700,
description->italic,
description->charset);
if (fd == -1)
- return NULL;
+ return 0;
scoped_refptr<Font> font(new Font(module, fd));
diff --git a/webkit/glue/plugins/pepper_image_data.cc b/webkit/glue/plugins/pepper_image_data.cc
index 8288fe2..d3246c2 100644
--- a/webkit/glue/plugins/pepper_image_data.cc
+++ b/webkit/glue/plugins/pepper_image_data.cc
@@ -31,11 +31,11 @@ PP_Resource Create(PP_Module module_id,
bool init_to_zero) {
PluginModule* module = PluginModule::FromPPModule(module_id);
if (!module)
- return NULL;
+ return 0;
scoped_refptr<ImageData> data(new ImageData(module));
if (!data->Init(format, size->width, size->height, init_to_zero))
- return NULL;
+ return 0;
return data->GetReference();
}
diff --git a/webkit/glue/plugins/pepper_scrollbar.cc b/webkit/glue/plugins/pepper_scrollbar.cc
index 48db8d4..e6e691b 100644
--- a/webkit/glue/plugins/pepper_scrollbar.cc
+++ b/webkit/glue/plugins/pepper_scrollbar.cc
@@ -28,7 +28,7 @@ namespace {
PP_Resource Create(PP_Instance instance_id, bool vertical) {
PluginInstance* instance = PluginInstance::FromPPInstance(instance_id);
if (!instance)
- return NULL;
+ return 0;
scoped_refptr<Scrollbar> scrollbar(new Scrollbar(instance, vertical));
return scrollbar->GetReference();