Index: google_apis/gcm/base/mcs_util.cc |
diff --git a/google_apis/gcm/base/mcs_util.cc b/google_apis/gcm/base/mcs_util.cc |
index b35b23c6ef9aef1fea3b66ca96b41eeb57db8b18..e79355cba3ac8bb0414841d6dab081a73fe0d06e 100644 |
--- a/google_apis/gcm/base/mcs_util.cc |
+++ b/google_apis/gcm/base/mcs_util.cc |
@@ -81,7 +81,7 @@ scoped_ptr<mcs_proto::LoginRequest> BuildLoginRequest( |
login_request->add_setting(); |
login_request->mutable_setting(0)->set_name(kLoginSettingDefaultName); |
login_request->mutable_setting(0)->set_value(kLoginSettingDefaultValue); |
- return login_request.Pass(); |
+ return login_request; |
} |
scoped_ptr<mcs_proto::IqStanza> BuildStreamAck() { |
@@ -90,7 +90,7 @@ scoped_ptr<mcs_proto::IqStanza> BuildStreamAck() { |
stream_ack_iq->set_id(""); |
stream_ack_iq->mutable_extension()->set_id(kStreamAck); |
stream_ack_iq->mutable_extension()->set_data(""); |
- return stream_ack_iq.Pass(); |
+ return stream_ack_iq; |
} |
scoped_ptr<mcs_proto::IqStanza> BuildSelectiveAck( |
@@ -104,7 +104,7 @@ scoped_ptr<mcs_proto::IqStanza> BuildSelectiveAck( |
selective_ack.add_id(acked_ids[i]); |
selective_ack_iq->mutable_extension()->set_data( |
selective_ack.SerializeAsString()); |
- return selective_ack_iq.Pass(); |
+ return selective_ack_iq; |
} |
// Utility method to build a google::protobuf::MessageLite object from a MCS |