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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 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
Index: remoting/protocol/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index bb3eb73f243e8e049ddd973c9b7cea8ed44c17cb..1b1343f72a5db2666d930fd0924c9202e558d8eb 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -769,14 +769,14 @@ void JingleSession::ProcessIncomingPluginMessage(
if (!message.attachments) {
return;
}
- for (const auto& plugin : plugins_) {
+ for (auto* plugin : plugins_) {
plugin->OnIncomingMessage(*(message.attachments));
}
}
void JingleSession::AddPluginAttachments(JingleMessage* message) {
DCHECK(message);
- for (const auto& plugin : plugins_) {
+ for (auto* plugin : plugins_) {
std::unique_ptr<XmlElement> attachment = plugin->GetNextMessage();
if (attachment) {
message->AddAttachment(std::move(attachment));
« no previous file with comments | « remoting/host/host_extension_session_manager.cc ('k') | sandbox/linux/seccomp-bpf-helpers/sigsys_handlers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698