Bug 715672. Fix typo in ipc_message_utils.h. r=cjones
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 05 Jan 2012 17:37:32 -0500
changeset 86346 a48083197b68f2f5b97cda2f82449866bd96aa8e
parent 86345 5ca40c028ae5f2f6f7aec3ea2195a90422ccd2ba
child 86347 90e2471b7a422fedafb4e31ede0cc1b766a2cd6a
push idunknown
push userunknown
push dateunknown
reviewerscjones
bugs715672, 1455001
milestone12.0a1
Bug 715672. Fix typo in ipc_message_utils.h. r=cjones Caught by a clang warning: /Users/jrmuizel/source/mozilla-central/ipc/chromium/src/chrome/common/ipc_message_utils.h:782:40: warning: expression result unused [-Wunused-value] ReadParam(m, iter, &r->dispatch) && ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ and fixed upstream in http://codereview.chromium.org/1455001
ipc/chromium/src/chrome/common/ipc_message_utils.h
--- a/ipc/chromium/src/chrome/common/ipc_message_utils.h
+++ b/ipc/chromium/src/chrome/common/ipc_message_utils.h
@@ -769,17 +769,17 @@ struct ParamTraits<LogData> {
     WriteParam(m, p.receive);
     WriteParam(m, p.dispatch);
     WriteParam(m, p.params);
   }
   static bool Read(const Message* m, void** iter, param_type* r) {
     int type;
     bool result =
       ReadParam(m, iter, &r->channel) &&
-      ReadParam(m, iter, &r->routing_id);
+      ReadParam(m, iter, &r->routing_id) &&
       ReadParam(m, iter, &type) &&
       ReadParam(m, iter, &r->flags) &&
       ReadParam(m, iter, &r->sent) &&
       ReadParam(m, iter, &r->receive) &&
       ReadParam(m, iter, &r->dispatch) &&
       ReadParam(m, iter, &r->params);
     r->type = static_cast<uint16>(type);
     return result;