diff options
author | John Reck <jreck@google.com> | 2012-06-14 17:18:29 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-06-14 17:18:29 -0700 |
commit | 4c5a4dcf70c125b8a568b050ed1c2491f25e4593 (patch) | |
tree | 463a04dc5daf275ee839640c00c74b0f851c9115 /Source/WebCore/plugins/android | |
parent | 462daef330d6d963124ce4d5535b80ba9acea2b6 (diff) | |
download | external_webkit-4c5a4dcf70c125b8a568b050ed1c2491f25e4593.zip external_webkit-4c5a4dcf70c125b8a568b050ed1c2491f25e4593.tar.gz external_webkit-4c5a4dcf70c125b8a568b050ed1c2491f25e4593.tar.bz2 |
Remove unused and fix build warning
Change-Id: I68292b54638502d0769e6e8dbeea5d77eef901d0
Diffstat (limited to 'Source/WebCore/plugins/android')
-rw-r--r-- | Source/WebCore/plugins/android/PluginViewAndroid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/plugins/android/PluginViewAndroid.cpp b/Source/WebCore/plugins/android/PluginViewAndroid.cpp index fdf6e03..2cc95b1 100644 --- a/Source/WebCore/plugins/android/PluginViewAndroid.cpp +++ b/Source/WebCore/plugins/android/PluginViewAndroid.cpp @@ -405,7 +405,7 @@ bool PluginView::platformGetValueStatic(NPNVariable variable, void* value, NPErr // our interface query is valid with no NPP instance *result = NPERR_GENERIC_ERROR; - switch (variable) { + switch ((int)variable) { case NPNVisOfflineBool: { if (value != NULL) { bool* retValue = static_cast<bool*>(value); @@ -422,7 +422,7 @@ bool PluginView::platformGetValueStatic(NPNVariable variable, void* value, NPErr return true; } default: - ; // do nothing + break; // do nothing } (void)anp_getInterface(variable, value, result); @@ -490,7 +490,7 @@ void PluginView::setNPWindowIfNeeded() bool PluginView::platformGetValue(NPNVariable variable, void* value, NPError* result) { - switch (variable) { + switch ((int)variable) { case NPNVWindowNPObject: { NPObject* windowScriptObject = m_parentFrame->script()->windowScriptNPObject(); @@ -581,7 +581,7 @@ NPError PluginView::platformSetValue(NPPVariable variable, void* value) { NPError error = NPERR_GENERIC_ERROR; - switch (variable) { + switch ((int)variable) { case kRequestDrawingModel_ANPSetValue: { ANPDrawingModel model = reinterpret_cast<ANPDrawingModel>(value); if (m_window->setDrawingModel(model)) |