diff options
author | jbauch <jbauch@webrtc.org> | 2015-07-16 02:46:32 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-16 09:46:43 +0000 |
commit | 083b73fb95755b78cb0b9cbe67752b7e7b7eb263 (patch) | |
tree | 6d6846be0bc538eafb646048678af9fdaf972282 /talk/app/webrtc/jsepsessiondescription.cc | |
parent | cd6702282a49448adda470934f4bd9e6181cab22 (diff) | |
download | webrtc-083b73fb95755b78cb0b9cbe67752b7e7b7eb263.tar.gz |
Use std::string references instead of copying contents.
This CL improves the memory footprint a bit by using string references
instead of creating a copy.
Review URL: https://codereview.webrtc.org/1241973002
Cr-Commit-Position: refs/heads/master@{#9592}
Diffstat (limited to 'talk/app/webrtc/jsepsessiondescription.cc')
-rw-r--r-- | talk/app/webrtc/jsepsessiondescription.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/talk/app/webrtc/jsepsessiondescription.cc b/talk/app/webrtc/jsepsessiondescription.cc index 697f332c27..d1428d000c 100644 --- a/talk/app/webrtc/jsepsessiondescription.cc +++ b/talk/app/webrtc/jsepsessiondescription.cc @@ -130,7 +130,7 @@ bool JsepSessionDescription::AddCandidate( } if (mediasection_index >= number_of_mediasections()) return false; - const std::string content_name = + const std::string& content_name = description_->contents()[mediasection_index].name; const cricket::TransportInfo* transport_info = description_->GetTransportInfoByName(content_name); |