From 0925622c1495325dfe3d3b25273f4439361936bc Mon Sep 17 00:00:00 2001 From: "dmichael@chromium.org" Date: Wed, 8 Jun 2011 20:22:02 +0000 Subject: Proxy PPB_Var, fix o-o-p string var id tracking. Note this doesn't need to use IPC at all, so it's a little strange. Made test for pp::Var/PPB_Var that does only strings (copied from test_var_deprecated.cc). Fixed string var tracking so test can pass out-of-process (aside from invalid UTF8 checking, which is still not implemented o-o-p). BUG=85236 TEST=test_var.cc, run tests manually out-of-process. Review URL: http://codereview.chromium.org/6995083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88384 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/proxy/ppb_var_deprecated_proxy.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'ppapi/proxy/ppb_var_deprecated_proxy.h') diff --git a/ppapi/proxy/ppb_var_deprecated_proxy.h b/ppapi/proxy/ppb_var_deprecated_proxy.h index 17e3a53..1e6a70c 100644 --- a/ppapi/proxy/ppb_var_deprecated_proxy.h +++ b/ppapi/proxy/ppb_var_deprecated_proxy.h @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#ifndef PPAPI_PPB_VAR_PROXY_H_ -#define PPAPI_PPB_VAR_PROXY_H_ +#ifndef PPAPI_PPB_VAR_DEPRECATED_PROXY_H_ +#define PPAPI_PPB_VAR_DEPRECATED_PROXY_H_ #include @@ -33,7 +33,7 @@ class PPB_Var_Deprecated_Proxy : public InterfaceProxy { static const Info* GetInfo(); const PPB_Var_Deprecated* ppb_var_target() const { - return reinterpret_cast(target_interface()); + return static_cast(target_interface()); } // InterfaceProxy implementation. @@ -101,4 +101,4 @@ class PPB_Var_Deprecated_Proxy : public InterfaceProxy { } // namespace proxy } // namespace pp -#endif // PPAPI_PPB_VAR_PROXY_H_ +#endif // PPAPI_PPB_VAR_DEPRECATED_PROXY_H_ -- cgit v1.1