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

Unified Diff: Source/modules/indexeddb/IDBObjectStore.h

Issue 23060037: IndexedDB: Return refs from a few const property accessors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 | « Source/modules/indexeddb/IDBIndex.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBObjectStore.h
diff --git a/Source/modules/indexeddb/IDBObjectStore.h b/Source/modules/indexeddb/IDBObjectStore.h
index f010c9ca02f474a4ddd0609af83fdd55ceb3147c..a4e8d3eec4f5b0bd5a7f26a277170ab9516c65d8 100644
--- a/Source/modules/indexeddb/IDBObjectStore.h
+++ b/Source/modules/indexeddb/IDBObjectStore.h
@@ -57,9 +57,9 @@ public:
// Implement the IDBObjectStore IDL
int64_t id() const { return m_metadata.id; }
- const String name() const { return m_metadata.name; }
+ const String& name() const { return m_metadata.name; }
PassRefPtr<IDBAny> keyPathAny() const { return IDBAny::create(m_metadata.keyPath); }
- const IDBKeyPath keyPath() const { return m_metadata.keyPath; }
+ const IDBKeyPath& keyPath() const { return m_metadata.keyPath; }
PassRefPtr<DOMStringList> indexNames() const;
PassRefPtr<IDBTransaction> transaction() const { return m_transaction; }
bool autoIncrement() const { return m_metadata.autoIncrement; }
« no previous file with comments | « Source/modules/indexeddb/IDBIndex.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698