| Index: ipc/ipc_message_utils.h
|
| ===================================================================
|
| --- ipc/ipc_message_utils.h (revision 50001)
|
| +++ ipc/ipc_message_utils.h (working copy)
|
| @@ -112,8 +112,7 @@
|
| template <class P>
|
| static inline void WriteParam(Message* m, const P& p) {
|
| typedef typename SimilarTypeTraits<P>::Type Type;
|
| - const Type& t = p;
|
| - ParamTraits<Type>::Write(m, t);
|
| + ParamTraits<Type>::Write(m, static_cast<const Type& >(p));
|
| }
|
|
|
| template <class P>
|
| @@ -126,8 +125,7 @@
|
| template <class P>
|
| static inline void LogParam(const P& p, std::wstring* l) {
|
| typedef typename SimilarTypeTraits<P>::Type Type;
|
| - const Type& t = p;
|
| - ParamTraits<Type>::Log(t, l);
|
| + ParamTraits<Type>::Log(static_cast<const Type& >(p), l);
|
| }
|
|
|
| template <>
|
|
|