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

Unified Diff: media/cast/test/sender.cc

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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: media/cast/test/sender.cc
diff --git a/media/cast/test/sender.cc b/media/cast/test/sender.cc
index c8168be5a50a011b133793fea6ab60ea821daa0a..c7b899993089fd8efd54794be652198cc2ed7e39 100644
--- a/media/cast/test/sender.cc
+++ b/media/cast/test/sender.cc
@@ -107,7 +107,7 @@ void QuitLoopOnInitializationResult(media::cast::OperationalStatus result) {
base::MessageLoop::current()->Quit();
}
-net::IPEndPoint CreateUDPAddress(std::string ip_str, uint16 port) {
+net::IPEndPoint CreateUDPAddress(const std::string& ip_str, uint16 port) {
net::IPAddressNumber ip_number;
CHECK(net::ParseIPLiteralToNumber(ip_str, &ip_number));
return net::IPEndPoint(ip_number, port);
« no previous file with comments | « media/cast/test/receiver.cc ('k') | media/cast/test/utility/input_builder.h » ('j') | url/gurl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698