Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: ipc/ipc_message_utils.h

Issue 2825006: Revert 49982 - patch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/zygote_main_linux.cc ('k') | media/audio/linux/alsa_output.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <>
« no previous file with comments | « chrome/browser/zygote_main_linux.cc ('k') | media/audio/linux/alsa_output.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698