diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 20:16:50 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-15 20:16:50 +0000 |
commit | c3d2e49758055e0c60ff670ec9260d3df9b41f06 (patch) | |
tree | dbd3026bad6c7131055addef60bd64d17aea158e | |
parent | bc0939b9bed53465f4f89db1c8bfa4509d57569a (diff) | |
download | chromium_src-c3d2e49758055e0c60ff670ec9260d3df9b41f06.zip chromium_src-c3d2e49758055e0c60ff670ec9260d3df9b41f06.tar.gz chromium_src-c3d2e49758055e0c60ff670ec9260d3df9b41f06.tar.bz2 |
Coverity: Fix missing const on WebPluginDelegatePepper::Device3DCreateContext override arg.
CID=8540
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2881014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52517 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/webplugin_delegate_pepper.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chrome/renderer/webplugin_delegate_pepper.cc b/chrome/renderer/webplugin_delegate_pepper.cc index 05e5762..9b55799 100644 --- a/chrome/renderer/webplugin_delegate_pepper.cc +++ b/chrome/renderer/webplugin_delegate_pepper.cc @@ -923,7 +923,7 @@ NPError WebPluginDelegatePepper::Device3DGetConfigAttribs( NPError WebPluginDelegatePepper::Device3DCreateContext( int32 config, - int32* attrib_list, + const int32* attrib_list, NPDeviceContext3D** context) { if (!context) return NPERR_GENERIC_ERROR; @@ -936,7 +936,8 @@ NPError WebPluginDelegatePepper::Device3DCreateContext( NPDeviceContext3DConfig old_config; old_config.commandBufferSize = kDefaultCommandBufferSize; if (attrib_list) { - for (int32* attrib_pair = attrib_list; *attrib_pair; attrib_pair += 2) { + for (const int32* attrib_pair = attrib_list; *attrib_pair; + attrib_pair += 2) { switch (attrib_pair[0]) { case NP3DAttrib_CommandBufferSize: old_config.commandBufferSize = attrib_pair[1]; @@ -1755,4 +1756,3 @@ void WebPluginDelegatePepper::DrawSkBitmapToCanvas( CGContextRestoreGState(canvas); } #endif // defined(OS_MACOSX) - diff --git a/chrome/renderer/webplugin_delegate_pepper.h b/chrome/renderer/webplugin_delegate_pepper.h index bba5743..be9c1ce 100644 --- a/chrome/renderer/webplugin_delegate_pepper.h +++ b/chrome/renderer/webplugin_delegate_pepper.h @@ -148,7 +148,7 @@ class WebPluginDelegatePepper : public webkit_glue::WebPluginDelegate, virtual NPError Device3DGetConfigAttribs(int32 config, int32* attrib_list); virtual NPError Device3DCreateContext(int32 config, - int32* attrib_list, + const int32* attrib_list, NPDeviceContext3D** context); virtual NPError Device3DRegisterCallback( NPP id, |