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

Unified Diff: media/cast/test/utility/input_builder.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/utility/input_builder.cc
diff --git a/media/cast/test/utility/input_builder.cc b/media/cast/test/utility/input_builder.cc
index 6fbe5064d850a02222cad5b1a24d00f99020a8db..c0b75db5ae07bffe3eed4a24d99ba574cc6e8589 100644
--- a/media/cast/test/utility/input_builder.cc
+++ b/media/cast/test/utility/input_builder.cc
@@ -63,7 +63,7 @@ int InputBuilder::GetIntInput() const {
return int_value;
}
-bool InputBuilder::ValidateInput(const std::string input) const {
+bool InputBuilder::ValidateInput(const std::string& input) const {
// Check for a valid range.
if (low_range_ == INT_MIN && high_range_ == INT_MAX)
return true;

Powered by Google App Engine
This is Rietveld 408576698