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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.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/DoubleOrString.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h
index 0c8bde56ed41168c1141a760114981083f30a293..50e2f2bae58d0ca0e5f5b3c2339bf6d3fcfb5295 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h
@@ -33,9 +33,9 @@ class CORE_EXPORT DoubleOrString final {
static DoubleOrString fromDouble(double);
bool isString() const { return m_type == SpecificTypeString; }
- String getAsString() const;
- void setString(String);
- static DoubleOrString fromString(String);
+ const String& getAsString() const;
+ void setString(const String&);
+ static DoubleOrString fromString(const String&);
DoubleOrString(const DoubleOrString&);
~DoubleOrString();

Powered by Google App Engine
This is Rietveld 408576698