diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:37 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-16 18:25:37 +0000 |
commit | c21e0e82db0a3e9a60940f7ceea74edb5a1c4122 (patch) | |
tree | 1bf0d8d3ab7e2adab9893158a8be1f8638698e62 /ipc | |
parent | a3cd502bb5891548171a4bb17fe1ce351cd45ba7 (diff) | |
download | chromium_src-c21e0e82db0a3e9a60940f7ceea74edb5a1c4122.zip chromium_src-c21e0e82db0a3e9a60940f7ceea74edb5a1c4122.tar.gz chromium_src-c21e0e82db0a3e9a60940f7ceea74edb5a1c4122.tar.bz2 |
patch
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49982 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/ipc_message_utils.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipc/ipc_message_utils.h b/ipc/ipc_message_utils.h index df2c6c7..f4cd245 100644 --- a/ipc/ipc_message_utils.h +++ b/ipc/ipc_message_utils.h @@ -112,7 +112,8 @@ struct SimilarTypeTraits { template <class P> static inline void WriteParam(Message* m, const P& p) { typedef typename SimilarTypeTraits<P>::Type Type; - ParamTraits<Type>::Write(m, static_cast<const Type& >(p)); + const Type& t = p; + ParamTraits<Type>::Write(m, t); } template <class P> @@ -125,7 +126,8 @@ static inline bool WARN_UNUSED_RESULT ReadParam(const Message* m, void** iter, template <class P> static inline void LogParam(const P& p, std::wstring* l) { typedef typename SimilarTypeTraits<P>::Type Type; - ParamTraits<Type>::Log(static_cast<const Type& >(p), l); + const Type& t = p; + ParamTraits<Type>::Log(t, l); } template <> |