diff --git a/ipc/glue/IPCMessageUtils.h b/ipc/glue/IPCMessageUtils.h index 135c13193428..bb10596cc038 100644 --- a/ipc/glue/IPCMessageUtils.h +++ b/ipc/glue/IPCMessageUtils.h @@ -922,7 +922,7 @@ struct ParamTraits> static void Write(Message* msg, const paramType& param) { WriteParam(msg, param.tag); - param.match(VariantWriter(msg)); + param.match(VariantWriter{msg}); } // Because VariantReader is a nested struct, we need the dummy template @@ -945,12 +945,12 @@ struct ParamTraits> // actually interested in the N - 1 tag. typename mozilla::detail::Nth::Type val; if (ReadParam(msg, iter, &val)) { - *result = paramType::AsVariant(val); + *result = mozilla::AsVariant(val); return true; } return false; } else { - return Next::Read(msg, iter, tag); + return Next::Read(msg, iter, tag, result); } }