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

Unified Diff: tools/gn/value.h

Issue 1350043004: Cleanup: Initialize Value from tools/gn by moving std::string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove Value(..., std::string&&) 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
« no previous file with comments | « tools/clang/empty_string/tests/test-original.cc ('k') | tools/gn/value.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/value.h
diff --git a/tools/gn/value.h b/tools/gn/value.h
index 44fba4adb2af16a450eda4608a767ed178a2bb1e..edcc2486cc35e7b0a155cdd93d071bf1a3650562 100644
--- a/tools/gn/value.h
+++ b/tools/gn/value.h
@@ -32,7 +32,7 @@ class Value {
Value(const ParseNode* origin, Type t);
Value(const ParseNode* origin, bool bool_val);
Value(const ParseNode* origin, int64_t int_val);
- Value(const ParseNode* origin, std::string str_val);
+ Value(const ParseNode* origin, const std::string& str_val);
brettw 2015/09/24 20:15:31 I think without adding the && constructor, this wi
ki.stfu 2015/09/24 20:54:29 Probably yes. BTW, why we don't want to use a mova
Value(const ParseNode* origin, const char* str_val);
// Values "shouldn't" have null scopes when type == Scope, so be sure to
// always set one. However, this is not asserted since there are some
« no previous file with comments | « tools/clang/empty_string/tests/test-original.cc ('k') | tools/gn/value.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698