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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.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/TestDictionaryDerivedImplementedAs.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.h b/third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.h
index 069f43e288120e597a64ec23a337f049218f04bb..072edb93cc1482f1c571a708657f0b4cb162e9c1 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/TestDictionaryDerivedImplementedAs.h
@@ -30,12 +30,12 @@ class CORE_EXPORT TestDictionaryDerivedImplementedAs : public TestDictionary {
TestDictionaryDerivedImplementedAs& operator=(const TestDictionaryDerivedImplementedAs&);
bool hasDerivedStringMember() const;
- String derivedStringMember() const;
- void setDerivedStringMember(String);
+ const String& derivedStringMember() const;
+ void setDerivedStringMember(const String&);
bool hasDerivedStringMemberWithDefault() const;
- String derivedStringMemberWithDefault() const;
- void setDerivedStringMemberWithDefault(String);
+ const String& derivedStringMemberWithDefault() const;
+ void setDerivedStringMemberWithDefault(const String&);
bool hasRequiredLongMember() const;
int32_t requiredLongMember() const;

Powered by Google App Engine
This is Rietveld 408576698