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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/DoubleOrStringOrDoubleOrStringSequence.h

Issue 2897603003: Get and return String by const-ref if used as rvalue (Closed)
Patch Set: Created 3 years, 7 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: third_party/WebKit/Source/bindings/tests/results/core/DoubleOrStringOrDoubleOrStringSequence.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrStringOrDoubleOrStringSequence.h b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrStringOrDoubleOrStringSequence.h
index 4f4469f2341f2cfcf2d8bd0d1da4f8d4549ce275..90e745ab0f08018663fa3242111bfaa26c34599c 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrStringOrDoubleOrStringSequence.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrStringOrDoubleOrStringSequence.h
@@ -40,9 +40,9 @@ class CORE_EXPORT DoubleOrStringOrDoubleOrStringSequence final {
static DoubleOrStringOrDoubleOrStringSequence fromDoubleOrStringSequence(const HeapVector<DoubleOrString>&);
bool isString() const { return m_type == SpecificTypeString; }
- String getAsString() const;
- void setString(String);
- static DoubleOrStringOrDoubleOrStringSequence fromString(String);
+ const String& getAsString() const;
+ void setString(const String&);
+ static DoubleOrStringOrDoubleOrStringSequence fromString(const String&);
DoubleOrStringOrDoubleOrStringSequence(const DoubleOrStringOrDoubleOrStringSequence&);
~DoubleOrStringOrDoubleOrStringSequence();

Powered by Google App Engine
This is Rietveld 408576698